Function to change default options
-
hello , I’m looking for a function to paste on my theme function.php in order to force the plugin défaut options.
Any idea/help?add_filters('the_seo_framework_default_site_options','nw_seo_framework_default_site',10,2); function nw_seo_framework_default_site(){ $args= array( // General. Performance. 'alter_search_query' => 0, 'alter_archive_query' => 0, ...... // Schema 'ld_json_searchbox' => 1, // LD+Json Sitelinks Searchbox 'ld_json_breadcrumbs' => 1, // LD+Json Breadcrumbs // Cache. //$this->o_plugin_updated => 1, // Plugin update cache. ); return wp_parse_args($args); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Function to change default options’ is closed to new replies.