✏️ 正在编辑: class-astra-yoast-seo.php
路径:
/home/eblama1/mintawon.farm/wp-content/themes/astra/inc/compatibility/class-astra-yoast-seo.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Yoast SEO Compatibility File. * * @package Astra */ /** * Astra Yoast SEO Compatibility * * @since 2.1.2 */ class Astra_Yoast_SEO { /** * Constructor */ public function __construct() { add_filter( 'wpseo_sitemap_exclude_post_type', array( $this, 'sitemap_exclude_post_type' ), 10, 2 ); } /** * Exclude One Content Type From Yoast SEO Sitemap * * @param string $value value. * @param string $post_type Post Type. * @since 2.1.2 */ public function sitemap_exclude_post_type( $value, $post_type ) { return 'astra-advanced-hook' === $post_type; } } /** * Kicking this off by object */ new Astra_Yoast_SEO();
💾 保存文件
← 返回文件管理器