| @@ -204,8 +204,13 @@ | ||
| 204 | 204 | if ( isset( $_GET['fl_asst_post_preview'] ) ) { |
| 205 | 205 | return false; |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | + // Don't show in Oxygen. | |
| 209 | + if ( isset( $_GET['ct_builder'] ) ) { | |
| 210 | + return false; | |
| 211 | + } | |
| 212 | + | |
| 208 | 213 | // User is logged in, and the current request is not customizer or an iframe |
| 209 | 214 | $state = UserState::get(); |
| 210 | 215 | |
| 211 | 216 | // Don't show Assistant in the WP Admin if the user has turned it off. |
| @@ -217,9 +222,9 @@ | ||
| 217 | 222 | if ( ! current_user_can( 'edit_others_posts' ) ) { |
| 218 | 223 | return false; |
| 219 | 224 | } |
| 220 | 225 | |
| 221 | - return true; | |
| 226 | + return apply_filters( 'fl_assistant_should_enqueue', true ); | |
| 222 | 227 | } |
| 223 | 228 | |
| 224 | 229 | public function register_vendors() { |
| 225 | 230 | |