Skip to content

Commit

Permalink
Merge pull request #3617 from ThemeFuse/disable-theme-settings-page-c…
Browse files Browse the repository at this point in the history
…onfig

feat($theme-settings): introduce disable_theme_settings_page
  • Loading branch information
andreiglingeanu authored Oct 3, 2018
2 parents bbb298b + 7eafbdd commit 125567d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public function _action_admin_menu() {
return;
}

if (fw()->theme->get_config('disable_theme_settings_page', false)) {
return;
}

if ( ! fw()->theme->locate_path('/options/settings.php') ) {
return;
}
Expand Down Expand Up @@ -215,4 +219,4 @@ public function _action_admin_enqueue_scripts()
}
}
}
}
}

0 comments on commit 125567d

Please sign in to comment.