• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Parsed Source / Parsed: 51433
function genesis_entry_header_hidden_on_current_page() {

  
/**
 * Override hide title state for the current page.
 *
 * @since 3.1.0
 *
 * @param bool $genesis_title_hidden True to hide title, false to show it.
 */
  $genesis_title_hidden = apply_filters( 'genesis_title_hidden', null );

  if ( is_bool( $genesis_title_hidden ) ) {
    return $genesis_title_hidden;
  }

  // The “hide title” option is currently offered on singulars
  // and on the blog posts page.
  if ( ! is_singular() && ! ( is_home() && ! is_front_page() ) ) {
    return false;
  }

  
/**
 * Prevents the “hide title” checkbox from appearing or functioning by returning false.
 *
 * @since 3.1.0
 *
 * @param bool $title_toggle_enabled True if title toggle is enabled, false otherwise.
 */
  $title_toggle_enabled = apply_filters( 'genesis_title_toggle_enabled', true );

  if ( ! $title_toggle_enabled ) {
    return false;
  }

  return get_post_meta( get_queried_object_id(), '_genesis_hide_title', true );

}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Source ref: genesis_entry_header_hidden_on_current_page() – Is the entry header hidden for the current page?
Parse count / Source file date: 1574704766
MD5 hash: 5227361b88ed2cc6a366cbdfaf112737

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
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:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites