Skip to content

Instantly share code, notes, and snippets.

@NigelRodgers
Created February 5, 2023 21:53
Show Gist options
  • Save NigelRodgers/ab19fc5cc45cd8f5b9b0f165dbf072a3 to your computer and use it in GitHub Desktop.
Save NigelRodgers/ab19fc5cc45cd8f5b9b0f165dbf072a3 to your computer and use it in GitHub Desktop.
Create missing rank_math/analytics/data_fetch
function reschedule_analytics_fetch_nr() {
if( ! get_option('run_create_vip_order_once') ) {
as_schedule_recurring_action( strtotime( 'tomorrow' ), 3*DAY_IN_SECONDS, 'rank_math/analytics/data_fetch', array(), "rank-math" );
update_option( 'run_create_vip_order_once', true );
}
}
add_action( 'init', 'reschedule_analytics_fetch_nr' );
@NigelRodgers
Copy link
Author

NigelRodgers commented Feb 5, 2023

delete_option( 'reschedule_analytics_fetch_nr' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment