wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_unschedule_hook › Filtr WordPress Hooks

Od5.7.0
Przestarzałyn/a
› apply_filters( 'pre_unschedule_hook', null, $hook, $wp_error )
Parametry: (3)
  • () pre Value to return instead. Default null to continue unscheduling the hook.
    Wymagane: Tak
  • () hook Action hook, the execution of which will be unscheduled.
    Wymagane: Tak
  • () wp_error Whether to return a WP_Error on failure.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filter to override clearing all events attached to the hook.

Returning a non-null value will short-circuit the normal unscheduling process, causing the function to return the filtered value instead. For plugins replacing wp-cron, return the number of events successfully unscheduled (zero if no events were registered with the hook). If unscheduling one or more events fails then return either a WP_Error object or false depending on the value of the `$wp_error` parameter.




Źródło

$pre = apply_filters( 'pre_unschedule_hook', null, $hook, $wp_error );