woocommerce_show_admin_bar_visit_store

woocommerce_show_admin_bar_visit_store

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_show_admin_bar_visit_store') is found 1 times:

  • /includes/admin/class-wc-admin-menus.php line 79
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
        // Add endpoints custom URLs in Appearance > Menus > Pages.
        add_action( 'admin_head-nav-menus.php', array( $this, 'add_nav_menu_meta_boxes' ) );
     
        // Admin bar menus.
        if ( apply_filters( 'woocommerce_show_admin_bar_visit_store', true ) ) {
            add_action( 'admin_bar_menu', array( $this, 'admin_bar_menus' ), 31 );
        }
     
        // Handle saving settings earlier than load-{page} hook to avoid race conditions in conditional menus.
        add_action( 'wp_loaded', array( $this, 'save_settings' ) );
    }