• 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 / WPSEO_Yoast_Columns::display_meta_columns() – Wraps the WPSEO_Metabox check to determine whether the metabox should be displayed either by choice of the admin or because the post type is not a public post type.

You appear to be a bot. Output may be restricted

Description

Wraps the WPSEO_Metabox check to determine whether the metabox should be displayed either by choice of the admin or because the post type is not a public post type.

Usage

$bool = WPSEO_Yoast_Columns::display_meta_columns();

Parameters

Returns

bool Whether or not the meta box (and associated columns etc) should be hidden.

Source

File name: wordpress-seo/admin/class-yoast-columns.php


Lines:

1 to 10 of 10
  private function display_meta_columns() {
    $current_post_type = sanitize_text_field( $this->get_current_post_type() );

    if ( empty( $current_post_type ) ) {
      return false;
    }

    return WPSEO_Utils::is_metabox_active( $current_post_type, 'post_type' );
  }
 

 View on GitHub View on Trac

Published: 8th June 2020 | Last updated: 10th December 2020

Primary Sidebar

Information

Function name: WPSEO_Yoast_Columns::display_meta_columns
Class ref: WPSEO_Yoast_Columns
Plugin ref: Yoast SEO
Version: 15.9
Sourcefile: admin/class-yoast-columns.php
File ref: admin/class-yoast-columns.php
Deprecated?: No
API Letters: C,D,M,W,Y

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 5.6.2
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-2021. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites