WP_Customize_Panel::maybe_render()

Check capabilities and render the panel.


Source

File: wp-includes/class-wp-customize-panel.php

	final public function maybe_render() {
		if ( ! $this->check_capabilities() ) {
			return;
		}

		/**
		 * Fires before rendering a Customizer panel.
		 *
		 * @since WP-4.0.0
		 *
		 * @param WP_Customize_Panel $this WP_Customize_Panel instance.
		 */
		do_action( 'customize_render_panel', $this );

		/**
		 * Fires before rendering a specific Customizer panel.
		 *
		 * The dynamic portion of the hook name, `$this->id`, refers to
		 * the ID of the specific Customizer panel to be rendered.
		 *
		 * @since WP-4.0.0
		 */
		do_action( "customize_render_panel_{$this->id}" );

		$this->render();
	}


Changelog

Changelog
Version Description
WP-4.0.0 Introduced.