Slicknav WordPress Filter to adjust values

The Slicknav WordPress Mobile Menu plugin version 1.6.2+ now has a filter action that allows you change certain values via your functions.php file.

The filter name is (  ‘ng_slicknav_slickNavVars’, $data ); it takes one parameter $data

What can be filtered:

Slicknav ValueWhat it doesValue type
ng_slicknav_positionHTML element to append menustring value
ng_slicknav_parent_linksAllow parent linksboolean: true/false
ng_slicknav_child_linksShow child links on openboolean: true/false
ng_slicknav_speedSpeed menu opens/closesinteger
ng_slicknav_labelLabel name on buttonstring
ng_slicknav_brandLogo Imagestring
ng_slicksearchLogo URLstring
ng_slicknav_altLogo alt textstring
ng_slicknav_searchAdd search fieldboolean: true/false
ng_slicknav_closedsymbolClose symbolstring HTML entity
ng_slicknav_openedsymbolOpen symbolstring HTML entity

How to filter (examples):

Change the label on the Menu Button:

function themeprefix_slicknav_custom_label( $data ) {
 $data['ng_slicknav']['ng_slicknav_label'] = 'New Label';
 return $data;
}
add_filter( 'ng_slicknav_slickNavVars', 'themeprefix_slicknav_custom_label' );

Change the Closed Symbol:

function themeprefix_slicknav_custom_symbol( $data ) { 
 $data['ng_slicknav']['ng_slicknav_closedsymbol'] = '●' ; 
return $data; 
} 
add_filter( 'ng_slicknav_slickNavVars', 'themeprefix_slicknav_custom_symbol' );

Conditionally change the Logo on the home page:

function themeprefix_slicknav_custom_image ( $data ) { 
 if( is_home() ) : 
 $data['ng_slicknav']['ng_slicknav_brand'] = 'http://mynewlogo.com/images/newimage.png'; 
 return $data; 
 else: 
 return $data; 
 endif; 
} 
add_filter( 'ng_slicknav_slickNavVars', 'themeprefix_slicknav_custom_image' );

You add the filter in your functions.php file of your theme.

Gist below of all 3 examples above