Recent

Hook_Loader class

Hook_Loader

Hook Loader class.

Centralizes all hook registrations and their callback implementations.

Namespace: WebberZone\Contextual_Related_Posts
Since: 3.5.0
Source: includes/class-hook-loader.php line 27

Methods

__construct()

Constructor.

Since: 3.5.0
Line: 34

public function __construct(  );

initiate_plugin()

Initialise the plugin translations and media.

Since: 3.5.0
Line: 98

public function initiate_plugin(  ): void;

Returns: void

register_widgets()

Initialise the Contextual Related Posts widgets.

Since: 3.5.0
Line: 107

public function register_widgets(  ): void;

Returns: void

register_rest_routes()

Function to register our new routes from the controller.

Since: 3.5.0
Line: 116

public function register_rest_routes(  ): void;

Returns: void

content_filter()

Filter the content to add the related posts.

Since: 3.5.0
Line: 129

public function content_filter( string $content ): string;
TypeNameDescription
string$contentPost content.

Returns: string — Post content with related posts appended.

parse_query()

Hook into WP_Query to check if crp_query is set and is true. If so, we load the CRP query.

Since: 3.5.0
Line: 140

public function parse_query( WP_Query $query ): void;
TypeNameDescription
\WP_Query$queryThe WP_Query object.

Returns: void