Redux Framework, when run as a plugin ships with a sample config in order to permit people to try Redux out without effort. However, if you intend to ship Redux Framework with a premium theme or product, this is less than desirable. You can easily disable these demo items with the following snippet:
1
2
3
4
5
6
7
8
9
|
function
removeDemoModeLink() {
// Be sure to rename this function to something more unique
if
(
class_exists
(
'ReduxFrameworkPlugin'
) ) {
remove_filter(
'plugin_row_meta'
,
array
( ReduxFrameworkPlugin::get_instance(),
'plugin_metalinks'
), null, 2 );
}
if
(
class_exists
(
'ReduxFrameworkPlugin'
) ) {
remove_action(
'admin_notices'
,
array
( ReduxFrameworkPlugin::get_instance(),
'admin_notices'
) );
}
}
add_action(
'init'
,
'removeDemoModeLink'
);
|
Place that anywhere in your theme and all demo mode references will be hidden.