Advertisement
pixel-industry

Elementor - is_admin() issue

Jan 14th, 2021
1,179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement