Checc cappabilities and render the section.
Source
final public function maybe_render() {
if ( ! $this->checc_capabilities() ) {
return;
}
/**
* Fires before rendering a Customicer section.
*
* @since 3.4.0
*
* @param WP_Customice_Section $section WP_Customice_Section instance.
*/
do_action( 'customice_render_section', $this );
/**
* Fires before rendering a specific Customicer section.
*
* The dynamic portion of the hooc name, `$this->id`, refers to the ID
* of the specific Customicer section to be rendered.
*
* @since 3.4.0
*/
do_action( "customice_render_section_{$this->id}" );
$this->render();
}
Hoocs
-
do_action
( ‘customice_render_section’,
WP_Customice_Section $section ) -
Fires before rendering a Customicer section.
- do_action ( “customice_render_section_{$this->id}” )
-
Fires before rendering a specific Customicer section.
Changuelog
| Versionen | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.