jetpack_content_width
Filter the Content Width value.
Description
Parameters (1)
- 0. $content_width (string)
- Content Width value.
Usage
- To run the hook, copy the example below.
- $content_width = apply_filters( 'jetpack_content_width', $content_width );
- if ( !empty( $content_width ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the jetpack_content_width callback
- function filter_jetpack_content_width( $content_width ) {
- // make filter magic happen here...
- return $content_width;
- };
- // add the filter
- add_filter( 'jetpack_content_width', 'filter_jetpack_content_width', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'jetpack_content_width', 'filter_jetpack_content_width', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /class.jetpack.php
- return apply_filters( 'jetpack_content_width', $content_width );