This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wpseo_orphaned_post_types', 'set_wpseo_orphaned_post_types'); | |
function set_wpseo_orphaned_post_types( $post_types ) { | |
$post_types = array(''); // empty array disables the orhpaned content filter for all post types | |
return $post_types; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// STRIP SHORTCODES FROM ALGOLIA SEARCH RESULTS | |
add_filter( 'algolia_strip_patterns', function( $patterns ) { | |
$patterns[] = '/\[\/?.*?\]/g'; | |
return $patterns; | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Adds customized product categories widget with subcategories (when applicable). | |
*/ | |
class subcat_widget extends WP_Widget { | |
/** | |
* Register widget with WordPress. | |
*/ |