get_plugin_status example

__( 'Sorry, you are not allowed to manage plugins for this site.' ),
                array( 'status' => rest_authorization_required_code() )
            );
        }

        $can_read = $this->check_read_permission( $request['plugin'] );

        if ( is_wp_error( $can_read ) ) {
            return $can_read;
        }

        $status = $this->get_plugin_status( $request['plugin'] );

        if ( $request['status'] && $status !== $request['status'] ) {
            $can_change_status = $this->plugin_status_permission_check( $request['plugin']$request['status']$status );

            if ( is_wp_error( $can_change_status ) ) {
                return $can_change_status;
            }
        }

        return true;
    }

    
Home | Imprint | This part of the site doesn't use cookies.