• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Abstract_Exclude_Post_Type::exclude_post_types() – Exclude the post type from the indexable table.

You appear to be a bot. Output may be restricted

Description

Exclude the post type from the indexable table.

Usage

$array = Abstract_Exclude_Post_Type::exclude_post_types( $excluded_post_types );

Parameters

$excluded_post_types
( array ) required – The excluded post types.

Returns

array The excluded post types, including the specific post type.

Source

File name: wordpress-seo/src/integrations/abstract-exclude-post-type.php
Lines:

1 to 3 of 3
  public function exclude_post_types( $excluded_post_types ) {
    return \array_merge( $excluded_post_types, $this->get_post_type() );
  }
 

 View on GitHub View on Trac

Published: 12th September 2021 | Last updated: 12th September 2021

Primary Sidebar

Information

Function name: Abstract_Exclude_Post_Type::exclude_post_types
Class ref: Abstract_Exclude_Post_Type
Plugin ref: Yoast SEO
Version: 19.9
Sourcefile: src/integrations/abstract-exclude-post-type.php
File ref: src/integrations/abstract-exclude-post-type.php
Deprecated?: No
API Letters: A,E,P,T

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 6.1.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites