mirror of
https://ghproxy.net/https://github.com/AlxMedia/curver.git
synced 2025-08-26 10:54:03 +08:00
1.1.8
This commit is contained in:
parent
2e0d2c4a34
commit
75c4c99465
25 changed files with 6799 additions and 1638 deletions
|
@ -3,7 +3,7 @@
|
|||
* An accessible and mobile-friendly implementation for navigation menus.
|
||||
*/
|
||||
|
||||
namespace AlxMedia;
|
||||
namespace Curver;
|
||||
|
||||
/**
|
||||
* Object containing all methods and hooks to modify default menus.
|
||||
|
@ -46,7 +46,7 @@ class Nav {
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $handle_prefix = 'alexmedia-nav';
|
||||
protected $handle_prefix = 'curver-nav';
|
||||
|
||||
/**
|
||||
* Init.
|
||||
|
@ -56,6 +56,9 @@ class Nav {
|
|||
* @return void
|
||||
*/
|
||||
public function init() {
|
||||
if ( apply_filters( 'curver_disable_nav_mods', false ) ) {
|
||||
return;
|
||||
}
|
||||
add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 );
|
||||
add_filter( 'nav_menu_item_title', [ $this, 'nav_menu_item_title' ], 10, 4 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue