Skip to content

Commit b63c6d2

Browse files
Twenty Sixteen: Document the twentysixteen_content_width filter.
Follow-up to [40851]. Props pmbaldha, sabernhardt. Fixes #63646. git-svn-id: https://develop.svn.wordpress.org/trunk@61055 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7a840d3 commit b63c6d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/wp-content/themes/twentysixteen/functions.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ function twentysixteen_setup() {
246246
* @since Twenty Sixteen 1.0
247247
*/
248248
function twentysixteen_content_width() {
249+
/**
250+
* Filters Twenty Sixteen content width of the theme.
251+
*
252+
* @since Twenty Sixteen 1.0
253+
*
254+
* @param int $content_width Content width in pixels.
255+
*/
249256
$GLOBALS['content_width'] = apply_filters( 'twentysixteen_content_width', 840 );
250257
}
251258
add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );

0 commit comments

Comments
 (0)