Trying to implement code from ‘https://www.shamimsplugins.com/docs/front-end-pm/customization/remove-settings-menu-button/?utm_campaign=admin&utm_source=sidebar&utm_medium=useful_links’.
Using Theme ‘Twenty Fifteen’.
Tried to add the following lines into functions.php for this theme, and ‘Update File’.
add_filter( ‘fep_menu_buttons’, ‘fep_cus_fep_menu_buttons’, 99 );
function fep_cus_fep_menu_buttons( $menu )
{
unset( $menu[‘settings’] );
return $menu;
}
When I try to update I get the following message:
Your PHP code changes were rolled back due to an error on line 434 of file wp-content/themes/twentyfifteen/functions.php. Please fix and try saving again.
syntax error, unexpected ‘$menu’ (T_VARIABLE)
What now?