files_manager; // phpcs:ignore if (!empty($file_manager)) { $file_manager->clear_cache(); } // end if; restore_current_blog(); } // end regenerate_css; /** * Prevents redirection to primary domain when in Elementor preview mode. * * @since 2.0.0 * * @param bool $should_redirect If we should redirect or not. * @return bool */ public function maybe_prevent_redirection($should_redirect) { return wu_request('elementor-preview', false) === false ? $should_redirect : false; } // end maybe_prevent_redirection; /** * Maybe adds the setup preview for elements inside elementor. * * @since 2.0.5 * @return void */ public function maybe_setup_preview() { $elementor_actions = array( 'elementor', 'elementor_ajax', ); if (in_array(wu_request('action'), $elementor_actions, true)) { wu_element_setup_preview(); } // end if; } // end maybe_setup_preview; } // end class Elementor_Compat;