bp_dtheme_header_image_width
The BuddyPress bp dtheme header image width hook.
Description
Parameters (1)
- 0. $int (int) =>
1250
- The int.
Usage
- To run the hook, copy the example below.
- $int = apply_filters( 'bp_dtheme_header_image_width', $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_width callback
- function filter_bp_dtheme_header_image_width( $int ) {
- // make filter magic happen here...
- return $int;
- };
- // add the filter
- add_filter( 'bp_dtheme_header_image_width', 'filter_bp_dtheme_header_image_width', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_dtheme_header_image_width', 'filter_bp_dtheme_header_image_width', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-themes/bp-default/functions.php
- define( 'HEADER_IMAGE_WIDTH', apply_filters( 'bp_dtheme_header_image_width', 1250 ) );