wpseek.com
A WordPress-centric search engine for devs and theme authors
unregister_default_headers › WordPress Function
Since3.0.0
Deprecatedn/a
› unregister_default_headers ( $header )
Parameters: |
|
See: | |
Returns: |
|
Defined at: |
|
Codex: |
Unregisters default headers.
This function must be called after register_default_headers() has already added the header you want to remove.Related Functions: register_default_headers, register_column_headers, unregister_sidebar, unregister_meta_key, unregister_widget
Source
function unregister_default_headers( $header ) { global $_wp_default_headers; if ( is_array( $header ) ) { array_map( 'unregister_default_headers', $header ); } elseif ( isset( $_wp_default_headers[ $header ] ) ) { unset( $_wp_default_headers[ $header ] ); return true; } else { return false; } }