Cron and Incognito mode not firing
-
Hi Manzoor,
Many thanks for creating this excellent plugin.
I do have a little issue, if I run “$post_id = wp_insert_post($new_post, true);” on a template while I’m logged in as an admin, the Telegram message is fired. However if I do the same while in Incognito browser mode or through a Cron ( hence not in a logged in state ) the message does not come through. Any idea what I could be missing? My goal is to run wp_insert_post through a Cron. Many thanks ??My function:
function fn_new_signal($atts) { global $wpdb; global $user_ID; $entry_time = $atts['entry_time']; $wpdb->insert( '' . $atts['db_table'] . '', array( 'entry_time' => $entry_time, ) ); $new_post = array( 'post_title' => 'New Entry', 'post_content' => 'Entry Price: '. $entry_time .', 'post_status' => 'publish', 'post_date' => date('Y-m-d H:i:s'), 'post_author' => $user_ID, 'post_type' => 'post', ); $post_id = wp_insert_post($new_post); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cron and Incognito mode not firing’ is closed to new replies.