SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.6

searchwp_settings_nav_tab

SearchWP’s settings header includes tabs for all SearchWP settings screen. This action is used to insert a tab into that header navigation.

<?php
// Add custom SearchWP settings tab
add_action( 'searchwp_settings_nav_tab', function() {
if ( current_user_can( 'manage_options' ) ) {
searchwp_get_nav_tab( array(
'tab' => 'custom', // tab name
'label' => __( 'My Custom Tab', 'searchwp' ), // tab label
) );
}
}, 300 ); // priority controls placement of tab among other tabs
view raw functions.php hosted with ❤ by GitHub
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]