maybe_render example



    /** * Get the control's content for insertion into the Customizer pane. * * @since 4.1.0 * * @return string Contents of the control. */
    final public function get_content() {
        ob_start();
        $this->maybe_render();
        return trim( ob_get_clean() );
    }

    /** * Check capabilities and render the control. * * @since 3.4.0 * @uses WP_Customize_Control::render() */
    final public function maybe_render() {
        if ( ! $this->check_capabilities() ) {
            


    /** * Get the section's content for insertion into the Customizer pane. * * @since 4.1.0 * * @return string Contents of the section. */
    final public function get_content() {
        ob_start();
        $this->maybe_render();
        return trim( ob_get_clean() );
    }

    /** * Check capabilities and render the section. * * @since 3.4.0 */
    final public function maybe_render() {
        if ( ! $this->check_capabilities() ) {
            return;
        }


    /** * Get the panel's content template for insertion into the Customizer pane. * * @since 4.1.0 * * @return string Content for the panel. */
    final public function get_content() {
        ob_start();
        $this->maybe_render();
        return trim( ob_get_clean() );
    }

    /** * Check capabilities and render the panel. * * @since 4.0.0 */
    final public function maybe_render() {
        if ( ! $this->check_capabilities() ) {
            return;
        }
Home | Imprint | This part of the site doesn't use cookies.