shortcode – I need to throw a message or load a different page

Move your form processing code outside the shortcode so you can hook it to an earlier action before headers are sent, then you can do whatever redirection you need to after the form is processed. function process_int_form(){ if ( isset( $_REQUEST[‘int_prefix’] ) && isset( $_REQUEST[‘int_suffix’] ) ) { // process form wp_redirect( home_url( $_SERVER[‘REQUEST_URI’] ) … Read more

Update user meta after one hour

Please read carefully about wp_schedule_single_event in Codex. As you can see, there is a third argument $args. You can schedule a singule WP_Cron event by modifying the function you use above and passing arguments as third parameter: <?php // Your basic hook schelduling… wp_schedule_single_event( time() + 30, ‘user_cron_event’, array( ‘user_id’ => $user_id, ‘oldmoney’ => $oldmoney, … Read more