action_scheduler_deleted_action

action_scheduler_deleted_action

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('action_scheduler_deleted_action') is found 2 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 747
    		$deleted = $wpdb->delete( $wpdb->actionscheduler_actions, array( 'action_id' => $action_id ), array( '%d' ) );
    		if ( empty( $deleted ) ) {
    			throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
    		}
    		do_action( 'action_scheduler_deleted_action', $action_id );
    	}
    
    	/**
    	 * Get the schedule date for an action.
    	 *
    	 * @param string $action_id Action ID.
    
  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 536
    		if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) {
    			/* translators: %s is the action ID */
    			throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) );
    		}
    		do_action( 'action_scheduler_deleted_action', $action_id );
    
    		wp_delete_post( $action_id, true );
    	}
    
    	/**
    	 * Get date for claim id.
    

See this hook used in plugins: