From 751833c97cfcb6d4ffd1413cb31f2431ca5805f6 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 2 Jan 2014 02:07:11 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/class-wp-customize-section.php. Props leewillis77, kpdesign. Fixes #26196. Built from https://develop.svn.wordpress.org/trunk@26892 git-svn-id: http://core.svn.wordpress.org/trunk@26775 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-section.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-section.php b/wp-includes/class-wp-customize-section.php index ab24dab5f3..f53ae9d670 100644 --- a/wp-includes/class-wp-customize-section.php +++ b/wp-includes/class-wp-customize-section.php @@ -66,8 +66,23 @@ class WP_Customize_Section { if ( ! $this->check_capabilities() ) return; + /** + * Fires before rendering a Customizer section. + * + * @since 3.4.0 + * + * @param WP_Customize_Section $this The WP_Customize_Section instance. + */ do_action( 'customize_render_section', $this ); - do_action( 'customize_render_section_' . $this->id ); + /** + * Fires before rendering a specific Customizer section. + * + * The dynamic portion of the hook name, $this->id, refers to the ID + * of the specific Customizer section to be rendered. + * + * @since 3.4.0 + */ + do_action( "customize_render_section_{$this->id}" ); $this->render(); }