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.9.9.5

do_action('action_scheduler_deleted_action') is found 2 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 803
    		if ( empty( $deleted ) ) {
    			/* translators: %s is the action ID */
    			throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to delete this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
    		}
    		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: we were unable to delete this action. It may may have been deleted by another process.', '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: