I write Following code to run my function every day at 16:20 ..
But I guess is the problem in code..
not working
Epoch timestamp: 1427488800
3/28/2015 1:10:00 AM
if( !wp_next_scheduled( 'import_into_db' ) ) {
wp_schedule_event( time('1427488800'), 'daily', 'import_into_db' );
function import_into_db(){
////My code
}
add_action('wp', 'import_into_db');
}
time()
function doesn't take an input argument, try thestrtotime()
function or thestrftime()
function instead, to create custom timestamps from a string. But if you already got the timestamp, you don't need them.