PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 1.6.4
Kubio AI Page Builder v1.6.4
2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / lib / menu / locations.php
kubio / lib / menu Last commit date
class-kubio-menu-wallker.php 4 years ago class-wp-rest-menu-locations-controller.php 4 years ago class-wp-rest-menus-controller.php 4 years ago index.php 4 years ago locations.php 4 years ago menu-rest-controller.php 3 years ago
locations.php
37 lines
1 <?php
2
3 function kubio_register_menus_locations() {
4 $current_locations = array_keys( get_registered_nav_menus() );
5
6 $kubio_locations = apply_filters(
7 'kubio_menus_locations',
8 array(
9 'header-menu' => kubio_theme_has_kubio_block_support()
10 ? esc_html__( 'Header menu', 'kubio' )
11 : esc_html__( 'Kubio header menu', 'kubio' ),
12
13 'header-menu-secondary' => kubio_theme_has_kubio_block_support()
14 ? esc_html__( 'Secondary header menu', 'kubio' )
15 : esc_html__( 'Kubio secondary header menu', 'kubio' ),
16
17 'footer-menu' => kubio_theme_has_kubio_block_support()
18 ? esc_html__( 'Footer menu', 'kubio' )
19 : esc_html__( 'Kubio footer menu', 'kubio' ),
20
21 'footer-menu-secondary' => kubio_theme_has_kubio_block_support()
22 ? esc_html__( 'Secondary footer menu', 'kubio' )
23 : esc_html__( 'Kubio secondary footer menu', 'kubio' ),
24 )
25 );
26
27 foreach ( $kubio_locations as $location => $title ) {
28 if ( in_array( $location, $current_locations ) ) {
29 unset( $kubio_locations[ $location ] );
30 }
31 }
32
33 register_nav_menus( $kubio_locations );
34 }
35
36 add_action( 'after_setup_theme', 'kubio_register_menus_locations', 100 );
37