Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Add apply_filters to register_nav_menus
Browse files Browse the repository at this point in the history
  • Loading branch information
tobeycodes committed Jul 21, 2016
1 parent 88eaae9 commit e6877c5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,18 @@ function primer_setup() {
* @since 1.0.0
*/
register_nav_menus(
array(
'primary' => esc_html__( 'Primary Menu', 'primer' ),
'social' => esc_html__( 'Social Menu', 'primer' ),
/**
* Filter registered nav menus.
*
* @since 1.0.0
*
* @var array
*/
(array) apply_filters( 'primer_nav_menus',
array(
'primary' => esc_html__( 'Primary Menu', 'primer' ),
'social' => esc_html__( 'Social Menu', 'primer' ),
)
)
);

Expand Down

0 comments on commit e6877c5

Please sign in to comment.