mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Clarify sprintf() usage for the before_widget argument of register_sidebar().
Follow-up to [49203], [49560]. See #19709. git-svn-id: https://develop.svn.wordpress.org/trunk@49561 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9a14f55ace
commit
98e774ee2e
@ -234,16 +234,17 @@ function register_sidebars( $number = 1, $args = array() ) {
|
||||
* Default empty string.
|
||||
* @type string $class Extra CSS class to assign to the sidebar in the Widgets interface.
|
||||
* Default empty.
|
||||
* @type string $before_widget HTML content to prepend to each widget's HTML output when
|
||||
* assigned to this sidebar. Default is an opening list item element.
|
||||
* @type string $after_widget HTML content to append to each widget's HTML output when
|
||||
* assigned to this sidebar. Default is a closing list item element.
|
||||
* @type string $before_widget HTML content to prepend to each widget's HTML output when assigned
|
||||
* to this sidebar. Receives the widget's ID attribute as `%1$s`
|
||||
* and class name as `%2$s`. Default is an opening list item element.
|
||||
* @type string $after_widget HTML content to append to each widget's HTML output when assigned
|
||||
* to this sidebar. Default is a closing list item element.
|
||||
* @type string $before_title HTML content to prepend to the sidebar title when displayed.
|
||||
* Default is an opening h2 element.
|
||||
* @type string $after_title HTML content to append to the sidebar title when displayed.
|
||||
* Default is a closing h2 element.
|
||||
* @type string $before_sidebar HTML content to prepend to the sidebar when displayed.
|
||||
* Receives the '$id' argument as %1$s and '$class' as %2$s.
|
||||
* Receives the `$id` argument as `%1$s` and `$class` as `%2$s`.
|
||||
* Outputs after the {@see 'dynamic_sidebar_before'} action.
|
||||
* Default empty string.
|
||||
* @type string $after_sidebar HTML content to append to the sidebar when displayed.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user