tag = $tag; if ( isset( $wp_filter[ $tag ] ) && is_array( $wp_filter[ $tag ] ) ) { $this->pointer = current( $wp_filter[ $tag ] ); } } public function restore() { global $wp_filter; if ( $this->pointer && isset( $wp_filter[ $this->tag ] ) && is_array( $wp_filter[ $this->tag ] ) ) { reset( $wp_filter[ $this->tag ] ); while( $this->pointer != current( $wp_filter[ $this->tag ] ) ) { if ( next( $wp_filter[ $this->tag ] ) === false ) { break; } } } } }