enqueue_styles( ... ) ); add_filter( self::CONTENT_FILTER, $this->highlighted( ... ), self::LATE_PRIORITY ); } public function enqueue_styles(): void { if ( $this->place_highlighter->is_requested() ) { $this->place_styles->enqueue(); } } public function highlighted( mixed $content ): mixed { if ( ! is_string( $content ) ) { return $content; } return $this->place_highlighter->highlight( $content ); } }