Description
Implement the "theme_mod_header_image" filter to replace the header image file name
Usage
$string = _bw_header_theme_mod_header_image( $filename );Parameters
- $filename
- ( string ) required – the URL of the header image
Returns
string $filenane – the (new) URL of the header imageSource
File name: oik-header/oik-header.phpLines:
1 to 13 of 13
function _bw_header_theme_mod_header_image( $filename ) { //bw_trace2( $filename ); static $post_id = null; if ( null === $post_id ) { $post_id = get_the_id(); $post_meta = get_post_meta( $post_id, '_bw_header_image', TRUE ); bw_trace2( $post_meta, "_bw_header_image" ); if ( $post_meta ) { $filename = $post_meta; } } return( $filename ); }
Called by
1 to 2 of 2
Invoked by
Call hooks
API Letters:
