Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp_schedule_event

//Schedules a recurring event.

register_activation_hook( __FILE__, 'my_activation' );
add_action( 'my_hourly_event', 'do_this_hourly' );
 
function my_activation() {
    wp_schedule_event( time(), 'hourly', 'my_hourly_event' );
}
 
function do_this_hourly() {
    // do something every hour
}
Comment

PREVIOUS NEXT
Code Example
Php :: Laravel PackageManifest.php: Undefined index: name 
Php :: auto reload for laravel 
Php :: timezones php 
Php :: php to print value if key exists in array 
Php :: is legged in wodpress 
Php :: laravel admin multi images 
Php :: git reset head 3 . how to back git init 
Php :: console.log for php 
Php :: Regex to remove span tags using php [duplicate] 
Php :: Woocommerce Changing the Entry Title of the Custom Endpoint 
Php :: best custom email validation rule for laravel 
Php :: magento 2 select to string 
Php :: check if data inserted in database wordpress plugin 
Php :: REFERRER CODEIGNITER 3 
Php :: Call to undefined method PsyUtilStr::random() 
Php :: laravel pagination get items array 
Php :: Regullar date format for php 
Php :: Laravel 9 Mail File 
Php :: make php website https 
Php :: media library laravel maximum allowed size 
Php :: php signature capture 
Php :: reindex after post api magento 2 
Php :: php array_diff 
Php :: php insert char before each letter using regex 
Php :: php is_assoc 
Php :: php read big file line by line 
Php :: Call Python From PHP And Get Return Code 
Php :: how to enable auto refresh on save 
Php :: laravel display category post by slug 
Php :: how to get today week month ad year data in eloquent 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =