[wp-meta] [Making WordPress.org] #1764: add_theme_support() docs do not mention second parameter $arguments
Making WordPress.org
noreply at wordpress.org
Thu Jun 9 19:48:08 UTC 2016
#1764: add_theme_support() docs do not mention second parameter $arguments
---------------------------+------------------------
Reporter: kevinwhoffman | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Developer Hub | Keywords: needs-docs
---------------------------+------------------------
add_theme_support() has two parameters, $feature and $arguments as
documented in the Codex:
https://codex.wordpress.org/Function_Reference/add_theme_support
{{{
<?php add_theme_support( $feature, $arguments ); ?>
}}}
The Code Reference only lists one parameter, $feature:
https://developer.wordpress.org/reference/functions/add_theme_support/
The Code Reference should be updated to document the $arguments parameter
for use cases like the following:
{{{
<?php add_theme_support( 'post-thumbnails', array( 'post_type' ) ); ?>
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1764>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list