File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
inc/extensions/customizer Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2040,6 +2040,11 @@ public function _register_settings() {
2040
2040
$ section ['title ' ] = "" ;
2041
2041
}
2042
2042
2043
+ if ( isset ( $ section ['customizer_only ' ] ) && $ section ['customizer_only ' ] == true ) {
2044
+ $ section ['panel ' ] = false ;
2045
+ $ this ->sections [ $ k ] = $ section ;
2046
+ }
2047
+
2043
2048
$ heading = isset ( $ section ['heading ' ] ) ? $ section ['heading ' ] : $ section ['title ' ];
2044
2049
2045
2050
if ( isset ( $ section ['permissions ' ] ) ) {
@@ -2124,6 +2129,10 @@ public function _register_settings() {
2124
2129
$ display = false ;
2125
2130
}
2126
2131
2132
+ if ( isset ( $ section ['customizer ' ] ) ) {
2133
+ $ field ['customizer ' ] = $ section ['customizer ' ];
2134
+ $ this ->sections [ $ k ]['fields ' ][ $ fieldk ] = $ field ;
2135
+ }
2127
2136
2128
2137
if ( isset ( $ field ['permissions ' ] ) ) {
2129
2138
Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ public function __construct( $parent ) {
63
63
$ this ->upload_url = ReduxFramework::$ _upload_url . 'advanced-customizer/ ' ;
64
64
65
65
//add_action('wp_head', array( $this, '_enqueue_new' ));
66
-
66
+ if ( $ parent ->args ['customizer ' ] == false ) {
67
+ return ;
68
+ }
67
69
68
70
// Override the ReduxCore class
69
71
add_filter ( "redux/extension/ {$ this ->parent ->args ['opt_name ' ]}/customizer " , array (
You can’t perform that action at this time.
0 commit comments