/home/techb158/primomovers.ca/wp-content/plugins/wp-rocket/inc/Engine/Admin/Settings
Edit: /home/techb158/primomovers.ca/wp-content/plugins/wp-rocket/inc/Engine/Admin/Settings/Subscriber.php (5240B)
page = $page;
}
/**
* Return an array of events that this subscriber wants to listen to.
*
* @since 3.3
*
* @return array
*/
public static function get_subscribed_events() {
return [
'admin_menu' => 'add_admin_page',
'admin_init' => 'configure',
'wp_ajax_rocket_refresh_customer_data' => 'refresh_customer_data',
'wp_ajax_rocket_toggle_option' => 'toggle_option',
'rocket_settings_menu_navigation' => [
[ 'add_menu_tools_page' ],
[ 'add_imagify_page', 9 ],
[ 'add_tutorials_page', 11 ],
],
'admin_enqueue_scripts' => [
[ 'enqueue_rocket_scripts' ],
[ 'enqueue_url' ],
],
'script_loader_tag' => [ 'async_wistia_script', 10, 2 ],
'rocket_after_settings_radio_options' => [ 'display_radio_options_sub_fields', 11 ],
];
}
/**
* Enqueue the URL for option exporting.
*
* @return void
*/
public function enqueue_url() {
wp_localize_script(
'wpr-admin-common',
'rocket_option_export',
[
'rest_url_option_export' => rest_url( 'wp-rocket/v1/options/export/' ),
]
);
}
/**
* Enqueues WP Rocket scripts on the settings page
*
* @since 3.6
*
* @param string $hook The current admin page.
*
* @return void
*/
public function enqueue_rocket_scripts( $hook ) {
$this->page->enqueue_rocket_scripts( $hook );
}
/**
* Adds the async attribute to the Wistia script
*
* @param string $tag The