ShiftNav 1.8.2 has 12 actions and 27 filters , read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
php functions.phpyour child theme Copy
// Run your own code when ShiftNav fires an action
add_action( 'shiftnav_after', function( $id ) {
// Your code runs here.
}, 10, 1 );
// Change a value ShiftNav is about to use
add_filter( 'nav_menu_item_id', function( $ID, $item, $args ) {
// Change $ID here.
return $ID;
}, 10, 3 ); Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
php includes/ShiftNavWalker.class.php
line 214
Example
/**
* This filter is documented in wp-includes/post-template.php
*/
apply_filters( 'the_title', $item->title, $item->ID );
php includes/functions.php
line 145 · used in 2 places
Example
apply_filters( 'shiftnav_main_toggle_target', $toggle_target );
php includes/functions.php
line 8
Example
apply_filters( 'plugin_locale', get_locale(), $domain );
php includes/ShiftNavWalker.class.php
line 332
Example
apply_filters( 'shiftnav_accordion_toggle_icon_close', '<i class="fa fa-' . $close_icon . '"></i>' );
php includes/ShiftNavWalker.class.php
line 331
Example
apply_filters( 'shiftnav_accordion_toggle_icon_open', '<i class="fa fa-' . $open_icon . '"></i>' );
php includes/shiftnav.api.php
line 107
Example
do_action( 'shiftnav_after', $id );
php includes/functions.php
line 381
Example
apply_filters( 'shiftnav_allowed_tags', $allowed_tags, $context );
php includes/shiftnav.api.php
line 45
Example
do_action( 'shiftnav_before', $id );
php customizer/customizer.styles.manager.php
line 103
Example
apply_filters( 'shiftnav_custom_styles', $styles );
php shiftnav.class.php
line 236
Example
apply_filters( 'shiftnav_display_now', $display );
php shiftnav.class.php
line 220
Example
apply_filters( 'shiftnav_is_mobile', wp_is_mobile() );
php includes/functions.php
line 270
Example
apply_filters( 'shiftnav_main_toggle_content', '<i class="' . $main_toggle_icon_class . '"></i>' );
php includes/functions.php
line 269
Example
apply_filters( 'shiftnav_main_toggle_icon_class', 'fa fa-bars' );
php admin/settings.config.php
line 1010
Example
apply_filters( 'shiftnav_op', $value, $option, $section, $default, $defaulted );
php includes/shiftnav.api.php
line 112
Example
apply_filters( 'shiftnav_panel_sr_close_text', '× Close Panel' );
php admin/settings.config.php
line 955
Example
do_action( 'shiftnav_settings_after' );
php admin/settings.config.php
line 950
Example
do_action( 'shiftnav_settings_before' );
php admin/settings.config.php
line 941
Example
do_action( 'shiftnav_settings_before_title' );
php admin/settings.config.php
line 930
Example
do_action( 'shiftnav_settings_panel' );
php admin/settings.config.php
line 409
Example
apply_filters( 'shiftnav_settings_panel_fields', $fields );
php admin/settings.config.php
line 744
Example
apply_filters( 'shiftnav_settings_panel_fields_after', $fields );
php admin/settings.config.php
line 769
Example
apply_filters( 'shiftnav_settings_panel_sections', $sections );
php admin/settings.config.php
line 927
Example
do_action( 'shiftnav_settings_panel_updated' );
php includes/functions.php
line 374
Example
do_action( 'shiftnav_toggle_after_content', $main_toggle, $target_id, $id );
php includes/functions.php
line 369
Example
do_action( 'shiftnav_toggle_before_content', $main_toggle, $target_id, $id );
php includes/functions.php
line 372
Example
apply_filters( 'shiftnav_toggle_content', $content, $target_id, $id );
php includes/functions.php
line 339
Example
apply_filters( 'shiftnav_toggle_tabindex', $tabindex, $args );
php shiftnav.class.php
line 112
Example
do_action( 'shiftnav_update' );
php admin/settings-api.class.php
line 547
Example
do_action( "wsa_form_bottom_{$form['id']}", $form );
php admin/settings-api.class.php
line 544
Example
do_action( "wsa_form_top_{$form['id']}", $form );
Generated from ShiftNav's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: