cron job in wordpress
register_activation_hook(__FILE__, 'my_activation');
function my_activation() {
if (! wp_next_scheduled ( 'my_hourly_event' )) {
wp_schedule_event(time(), 'hourly', 'my_hourly_event');
}
}
add_action('my_hourly_event', 'do_this_hourly');
function do_this_hourly() {
// do something every hour
}
Also in PHP:
- AWS HTTP error: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- create dir php
- check if line contains string php
- enable display error in php
- cache refresg in laravel
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 102400 bytes) in Unknown on line 0 laravel
- composer cache clean
- cache DB table laravel
- clear nuget cache
- 'php' is not recognized as an internal or external command, operable program or batch file.
- count length of string pphp
- F d php
- check if substr in string php
- clear cache migration laravel
- error log php array
- create foreign key laravel migration
- count() parameter must be an array or an object that implements countable laravel
- artisan clear template cache
- composer create laravel
- detect keyword of php string
- current ip in php
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 264245248 bytes) http://localhost:8000/createProduct
- carbon format date in laravel
- download php artisan