Recent

Main class

Main

Main class.

Namespace: WebberZone\WFP
Since: 3.1.0
Source: includes/class-main.php line 29

Methods

get_instance() static

Gets the instance of the class.

Since: 3.1.0
Line: 119

static public function get_instance(  ): Main;

Returns: Main

init_admin()

Initialize admin components.

Since: 3.2.0
Line: 162

public function init_admin(  ): void;

Returns: void

hooks()

Run the hooks.

Since: 3.1.0
Line: 173

public function hooks(  );

initiate_plugin()

Initialise the plugin translations and media.

Since: 3.1.0
Line: 187

public function initiate_plugin(  );

register_widgets()

Initialise the WFP widgets.

Since: 3.1.0
Line: 196

public function register_widgets(  );

register_rest_routes()

Register REST API routes.

Since: 3.2.0
Line: 205

public function register_rest_routes(  );

the_content() static

Filter the_content to add the followed posts.

Since: 3.1.0
Line: 217

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

Returns: string — Updated post content.

add_to_feed() static

Function to add the followed posts automatically to the feeds.

Since: 3.1.0
Line: 259

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

Returns: string — Updated post content.