Recent

Content_Processorclass

Content_Processor

Content Processor class.

Namespace: WebberZone\Link_Warnings
Since: 1.0.0
Source: includes/class-content-processor.php line 26

Methods

__construct()

Constructor.

Since: 1.0.0
Line: 49

public function __construct(  );

process_content()

Process content to add accessibility features.

Since: 1.0.0
Line: 71

public function process_content( $content, $external_content = ... ): string;
Type Name Description
string $content Content to process.
bool $external_content Whether to bypass the enabled post type check.

Returns: string — Modified content.

process_widget_content()

Process block, text, and custom HTML widget output.

Since: 1.6.0
Line: 237

public function process_widget_content( $content ): string;
Type Name Description
string $content Widget content.

Returns: string — Modified content.

process_widget_text()

Process legacy Text widget output without processing it twice for visual or Custom HTML widgets.

Since: 1.6.0
Line: 250

public function process_widget_text( $content, $instance = ..., $widget = ... ): string;
Type Name Description
string $content Widget content.
array $instance Widget instance settings.
object $widget Widget instance.

Returns: string — Modified content.

process_nav_menu()

Process navigation menu output.

Since: 1.6.0
Line: 269

public function process_nav_menu( $nav_menu ): string;
Type Name Description
string $nav_menu Navigation menu HTML.

Returns: string — Modified menu HTML.

process_comment_text()

Process comment output.

Since: 1.6.0
Line: 280

public function process_comment_text( $comment_text ): string;
Type Name Description
string $comment_text Comment HTML.

Returns: string — Modified comment HTML.

process_template_part()

Process block-theme template part output.

Only the complete template-part block is processed. Handling every render_block invocation would duplicate the post-content filter for ordinary post blocks.

Since: 1.6.0
Line: 295

public function process_template_part( $block_content, $block = ... ): string;
Type Name Description
string $block_content Rendered block HTML.
array $block Parsed block data.

Returns: string — Modified block HTML.