| Server IP : 94.177.215.211 / Your IP : 216.73.216.172 Web Server : nginx/1.26.0 System : Linux mtncompany-wp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : root ( 0) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source,eval MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sites/morsiesorsi/wp-content/themes/woodmart/inc/integrations/ |
Upload File : |
<?php
/**
* Yoast.
*
* @package woodmart
*/
if ( ! function_exists( 'YoastSEO' ) ) {
return;
}
add_action( 'category_description', 'woodmart_page_css_files_disable', 9 );
add_action( 'term_description', 'woodmart_page_css_files_disable', 9 );
add_action( 'category_description', 'woodmart_page_css_files_enable', 11 );
add_action( 'term_description', 'woodmart_page_css_files_enable', 11 );
if ( ! function_exists( 'woodmart_layout_post_type_filter' ) ) {
/**
* Exclude woodmart layout from Optimize SEO.
*
* @param array $post_types Post type.
* @return mixed
*/
function woodmart_layout_post_type_filter( $post_types ) {
if ( isset( $post_types['woodmart_layout'] ) ) {
unset( $post_types['woodmart_layout'] );
}
return $post_types;
}
add_filter( 'wpseo_accessible_post_types', 'woodmart_layout_post_type_filter' );
}
if ( ! function_exists( 'woodmart_indexable_excluded_post_types' ) ) {
/**
* Exclude woodmart layout from Optimize SEO.
*
* @param array $post_types Post type.
* @return mixed
*/
function woodmart_indexable_excluded_post_types( $post_types ) {
$post_types[] = 'woodmart_layout';
return $post_types;
}
add_filter( 'wpseo_indexable_excluded_post_types', 'woodmart_indexable_excluded_post_types' );
}