widget example


    do_action( 'the_widget', $widget$instance$args );

    $widget_obj->_set( -1 );
    $widget_obj->widget( $args$instance );
}

/** * Retrieves the widget ID base value. * * @since 2.8.0 * * @param string $id Widget ID. * @return string Widget ID base. */
function _get_widget_id_base( $id ) {
    
$instance = apply_filters( 'widget_display_callback', $instance$this$args );

            if ( false === $instance ) {
                return;
            }

            $was_cache_addition_suspended = wp_suspend_cache_addition();
            if ( $this->is_preview() && ! $was_cache_addition_suspended ) {
                wp_suspend_cache_addition( true );
            }

            $this->widget( $args$instance );

            if ( $this->is_preview() ) {
                wp_suspend_cache_addition( $was_cache_addition_suspended );
            }
        }
    }

    /** * Handles changed settings (Do NOT override). * * @since 2.8.0 * * @global array $wp_registered_widgets * * @param int $deprecated Not used. */
Home | Imprint | This part of the site doesn't use cookies.