Skip to content

Instantly share code, notes, and snippets.

@NigelRodgers
Created February 5, 2023 21:53
Show Gist options
  • Select an option

  • Save NigelRodgers/ab19fc5cc45cd8f5b9b0f165dbf072a3 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
Author

NigelRodgers commented Feb 5, 2023

delete_option( 'reschedule_analytics_fetch_nr' );

@kalivim
Copy link
Copy Markdown

kalivim commented Mar 11, 2026

You saved me!
Thanks!

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