Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @haroonmohal
    Hey haroonmohal.. yes if you change the plugin name after that you will access the dashboard .. but it’s not a permanent.

    Change the code

    $reflection = new \ReflectionClass( $class_name ); //45 line
    $method = $reflection->getMethod( 'get_site_editor_type' );
    
    // It's own method, use it.
    if ( $class_name === $method->class ) {
        return static::get_site_editor_type();
    }

    By

    if (method_exists($class_name, "get_site_editor_type")) {
        $reflection = new \ReflectionClass( $class_name );
        $method = $reflection->getMethod( 'get_site_editor_type' );
        
        // It's own method, use it.
        if ( $class_name === $method->class ) {
            return static::get_site_editor_type();
        }
    }

    elementor-pro file:
    /home/customer/www/captainhookssushi.com/public_html/wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:45

    Guys in my case it’s working fine.
    I think if you will use this code then your issue will be solved.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)