public function admin_init() { $config = Dispatcher::config(); $groups = $config->get_array('mobile.rgroups'); if (Util_Environment::is_w3tc_edge($config) && isset($groups['google']) && sizeof($groups['google']['agents']) == 1 && $groups['google']['agents'][0] == 'googlebot') { w3tc_delete_user_agent_group('google'); } }
public function admin_init() { if (w3tc_show_extension_notification('wordpress-seo', $this->criteria_match())) { add_action('admin_notices', array($this, 'admin_notices')); } $config = w3_instance('W3_Config'); $groups = $config->get_array('mobile.rgroups'); if (w3tc_edge_mode() && isset($groups['google']) && sizeof($groups['google']['agents']) == 1 && $groups['google']['agents'][0] == 'googlebot') { w3tc_delete_user_agent_group('google'); } }