The PHP function would look something like this:
add_filter( 'option_generate_menu_plus_settings','lh_custom_homepage_menu_plus_settings' );
function lh_custom_homepage_menu_plus_settings( $options ) {
if ( is_page() || is_front_page() ) {
$options['slideout_menu'] = 'false';
}
return $options;
}
Which means if its a page is_page()
or ||
it is the front page is_front_page()
then set the option for slideout menu to false.
https://docs.generatepress.com/article/adding-php/