Support

Account

Home Forums Bug Reports ACF fatal error on bbPress topic functions Reply To: ACF fatal error on bbPress topic functions

  • This works:

    function acf_is_screen( $id = '' ) {
    	
       // vars
       global $current_screen; // instead of $current_screen = get_current_screen();
    
       // bail early if no screen
       if( !$current_screen ) return false;
    
       // return
       return ($id === $current_screen->id);
    	
    }

    Can I filter that somehow, to change the variable?