wpseo_schema_article_types
wpseo_schema_article_types
Appears in: wordpress-seo.17.4, wordpress-seo.18.3, wordpress-seo.18.4.1, wordpress-seo.18.5.1, wordpress-seo.18.7, wordpress-seo.18.8, wordpress-seo.19.0, wordpress-seo.19.1, wordpress-seo.19.10, wordpress-seo.19.11, wordpress-seo.19.13, wordpress-seo.19.2, wordpress-seo.19.3, wordpress-seo.19.5.1, wordpress-seo.19.6, wordpress-seo.19.6.1, wordpress-seo.19.7.1, wordpress-seo.19.7.2, wordpress-seo.19.8, wordpress-seo.19.9, wordpress-seo.20.1, wordpress-seo.20.10, wordpress-seo.20.11, wordpress-seo.20.12, wordpress-seo.20.2.1, wordpress-seo.20.3, wordpress-seo.20.5, wordpress-seo.20.6, wordpress-seo.20.7, wordpress-seo.20.8, wordpress-seo.21.0, wordpress-seo.21.1, wordpress-seo.21.2, wordpress-seo.21.4, wordpress-seo.21.5, wordpress-seo.21.7, wordpress-seo.21.8, wordpress-seo.21.8.1, wordpress-seo.21.9.1, wordpress-seo.22.0, wordpress-seo.22.1, wordpress-seo.22.2, wordpress-seo.22.3, wordpress-seo.22.6, wordpress-seo.22.8, wordpress-seo.22.9, wordpress-seo.23.0, wordpress-seo.23.2, wordpress-seo.23.3, wordpress-seo.23.4, wordpress-seo.23.6, wordpress-seo.23.8, wordpress-seo.23.9
Hook Type: filter
Displaying hooks found in version: wordpress-seo.23.9apply_filters('wpseo_schema_article_types') is found 4 times:
- /inc/class-wpseo-meta.php line 359
if ( $article_helper->is_article_post_type( $post_type ) ) { $default_schema_article_type = WPSEO_Options::get( 'schema-article-type-' . $post_type ); /** This filter is documented in inc/options/class-wpseo-option-titles.php */ $allowed_article_types = apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES ); if ( ! array_key_exists( $default_schema_article_type, $allowed_article_types ) ) { $default_schema_article_type = WPSEO_Options::get_default( 'wpseo_titles', 'schema-article-type-' . $post_type ); } $field_defs['schema_article_type']['default'] = $default_schema_article_type; }
- /inc/class-wpseo-meta.php line 1044
Warning: Undefined array key 1046 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 1047 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 1048 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 1049 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
* @return void */ public static function filter_schema_article_types() { /** This filter is documented in inc/options/class-wpseo-option-titles.php */ self::$meta_fields['schema']['schema_article_type']['options'] = apply_filters( 'wpseo_schema_article_types', self::$meta_fields['schema']['schema_article_type']['options'] ); } }
- /inc/options/class-wpseo-option-titles.php line 663
* Make sure when you filter this to also filter `wpseo_schema_article_types_labels`. * * @param array $schema_article_types The available schema article types. */ if ( array_key_exists( $dirty[ $key ], apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES ) ) ) { $clean[ $key ] = $dirty[ $key ]; } else { $defaults = $this->get_defaults(); $post_type = str_replace( $switch_key, '', $key ); $clean[ $key ] = $defaults[ $switch_key . $post_type ];
- /src/context/meta-tags-context.php line 561
$additional_type = $this->options->get( 'schema-article-type-' . $this->indexable->object_sub_type ); } /** This filter is documented in inc/options/class-wpseo-option-titles.php */ $allowed_article_types = \apply_filters( 'wpseo_schema_article_types', Schema_Types::ARTICLE_TYPES ); if ( ! \array_key_exists( $additional_type, $allowed_article_types ) ) { $additional_type = $this->options->get_title_default( 'schema-article-type-' . $this->indexable->object_sub_type ); } // If the additional type is a subtype of Article, we're fine, and we can bail here.