diff options
author | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
commit | 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 (patch) | |
tree | e1d0212147048204b0eede0aa6ff79849ed479da /inc/compatibility/class-astra-yoast-seo.php | |
parent | 74a7109a2a5ab0d191f26c917ae69e46f0d83b32 (diff) | |
download | blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.gz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.bz2 blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.xz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.zip |
dos2unix on all .php files, begin paring down admin page and site branding.
Diffstat (limited to 'inc/compatibility/class-astra-yoast-seo.php')
-rw-r--r-- | inc/compatibility/class-astra-yoast-seo.php | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/inc/compatibility/class-astra-yoast-seo.php b/inc/compatibility/class-astra-yoast-seo.php index 1873f7f..e2bf3e6 100644 --- a/inc/compatibility/class-astra-yoast-seo.php +++ b/inc/compatibility/class-astra-yoast-seo.php @@ -1,40 +1,40 @@ -<?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 ) {
- if ( 'astra-advanced-hook' === $post_type ) {
- return true;
- }
- }
-
-}
-
-/**
- * Kicking this off by object
- */
-new Astra_Yoast_SEO();
+<?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 ) { + if ( 'astra-advanced-hook' === $post_type ) { + return true; + } + } + +} + +/** + * Kicking this off by object + */ +new Astra_Yoast_SEO(); |