From ad6e9d6b7ac0ba78c4df1fe32e5689ab6eca36d7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 2 Jan 2014 02:06:55 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/class-wp-customize-section.php. Props leewillis77, kpdesign. Fixes #26196. git-svn-id: https://develop.svn.wordpress.org/trunk@26892 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-section.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-section.php b/src/wp-includes/class-wp-customize-section.php index ab24dab5f3..f53ae9d670 100644 --- a/src/wp-includes/class-wp-customize-section.php +++ b/src/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(); }