Last active
August 6, 2018 17:44
-
-
Save generatepress/c270163b367cc7009a2b217094e861f6 to your computer and use it in GitHub Desktop.
Example of generate_{element}_element_display filter. In this example we target author archives and an Element with the ID of 10.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'generate_header_element_display', function( $display, $element_id ) { | |
if ( 10 === $element_id && is_author() ) { | |
$display = false; | |
} | |
return $display; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment