action_scheduler_canceled_action

action_scheduler_canceled_action

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('action_scheduler_canceled_action') is found 2 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 656
    		if ( false === $updated ) {
    			/* translators: %s: action ID */
    			throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to cancel this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
    		}
    		do_action( 'action_scheduler_canceled_action', $action_id );
    	}
    
    	/**
    	 * Cancel pending actions by hook.
    	 *
    	 * @since 3.0.0
    
  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 517
    		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 cancel this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
    		}
    		do_action( 'action_scheduler_canceled_action', $action_id );
    		add_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10, 5 );
    		wp_trash_post( $action_id );
    		remove_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10 );
    	}
    
    	/**
    

See this hook used in plugins: