apply_filters( 'twentynineteen_content_width', int $content_width )
- Since
- Twenty Nineteen 1.0
Filters Twenty Nineteen content width of the theme.
Compatibility
- WordPress
- since Twenty Nineteen 1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$content_widthint- Content width in pixels.
Where this hook fires · 1
wp-content/themes/twentynineteen/functions.php:256twentynineteen_content_width()
Source code
* Filters Twenty Nineteen content width of the theme. * * @since Twenty Nineteen 1.0 * * @param int $content_width Content width in pixels. */ $GLOBALS['content_width'] = apply_filters( 'twentynineteen_content_width', 640 );}add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 ); /** * Enqueues scripts and styles. *Changelog
Introduced in Twenty Nineteen 1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.9.7
Parameter
$content_width added.verified against sourceTwenty Nineteen 1.0
Twenty Nineteen 1.0from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.