w3tc_widget_setup

w3tc_widget_setup

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: w3-total-cache.2.8.0

do_action('w3tc_widget_setup') is found 1 times:

  • /Util_Widget.php line 49
    		if ( is_network_admin() ) {
    			do_action( 'w3tc_network_dashboard_setup' );
    			$dashboard_widgets = apply_filters( 'w3tc_network_dashboard_widgets', array() );
    		} else {
    			do_action( 'w3tc_widget_setup' );
    			$dashboard_widgets = apply_filters( 'w3tc_dashboard_widgets', array() );
    		}
    
    		foreach ( $dashboard_widgets as $widget_id ) {
    			$name = empty( $w3tc_registered_widgets[ $widget_id ]['all_link'] ) ? $w3tc_registered_widgets[ $widget_id ]['name'] : $w3tc_registered_widgets[ $widget_id ]['name'] . " <a href='{$w3tc_registered_widgets&#91;$widget_id&#93;&#91;'all_link'&#93;}' class='edit-box open-box'>" . __( 'View all', 'w3-total-cache' ) . '</a>';
    			self::add( $widget_id, $name, $w3tc_registered_widgets[ $widget_id ]['callback'], $w3tc_registered_widget_controls[ $widget_id ]['callback'] );
    

See this hook used in plugins: