pixel-industry

Elementor - is_admin() issue

Jan 14th, 2021
502
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sbc_is_elementor_edit_preview_mode(){
  2.  
  3.     if ( isset( $_GET['action'] ) && in_array( $_GET['action'], array('elementor') ) || isset($_GET['elementor-preview']) ) {
  4.         return true;
  5.  
  6.     }
  7.     return false;
  8. }
RAW Paste Data