get_option_name example


    public function set( $extension$error ) {
        if ( ! $this->is_api_loaded() ) {
            return false;
        }

        $option_name = $this->get_option_name();

        if ( ! $option_name ) {
            return false;
        }

        $paused_extensions = (array) get_option( $option_name, array() );

        // Do not update if the error is already stored.         if ( isset( $paused_extensions[ $this->type ][ $extension ] ) && $paused_extensions[ $this->type ][ $extension ] === $error ) {
            return true;
        }

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