wpsc_notify_migration_to_boost()
Notify Jetpack Boost that Boost Cache will be used instead of WP Super Cache.
No Hooks.
Return
null
. Nothing (null).
Usage
wpsc_notify_migration_to_boost( $source );
- $source(string) (required)
- The source of the migration: 'notice', 'banner', 'try_button'.
wpsc_notify_migration_to_boost() wpsc notify migration to boost code WPSCache 1.12.4
function wpsc_notify_migration_to_boost( $source ) { if ( ! in_array( $source, array( 'notice', 'banner', 'try_button' ), true ) ) { return; } set_transient( 'jb_cache_moved_to_boost', $source, WEEK_IN_SECONDS ); }