bp_dtheme_header_image_height
The BuddyPress bp dtheme header image height hook.
Description
Parameters (1)
- 0. $int (int) =>
133
- The int.
Usage
- To run the hook, copy the example below.
- $int = apply_filters( 'bp_dtheme_header_image_height', $int );
- if ( !empty( $int ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_dtheme_header_image_height callback
- function filter_bp_dtheme_header_image_height( $int ) {
- // make filter magic happen here...
- return $int;
- };
- // add the filter
- add_filter( 'bp_dtheme_header_image_height', 'filter_bp_dtheme_header_image_height', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_dtheme_header_image_height', 'filter_bp_dtheme_header_image_height', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-themes/bp-default/functions.php
- define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'bp_dtheme_header_image_height', 133 ) );