Recent

Main class

Main

Main plugin class.

Namespace: WebberZone\Snippetz
Since: 2.0.0
Source: includes/class-main.php line 21

Methods

get_instance() static

Gets the instance of the class.

Since: 2.0.0
Line: 91

static public function get_instance(  ): Main;

Returns: Main

init_admin()

Initialize admin components.

Since: 2.3.1
Line: 132

public function init_admin(  );

hooks()

Run the hooks.

Since: 2.0.0
Line: 143

public function hooks(  );

get_option_and_filter()

Get an option and apply an ata_{$option} filter.

Line: 189

public function get_option_and_filter( $option ): string;
TypeNameDescription
string$optionOption name.

Returns: string — Option value after filtering.

enqueue_scripts()

Function to enqueue scripts and styles. Filters wp_enqueue_scripts.

Since: 2.3.0
Line: 207

public function enqueue_scripts(  );

Function to add custom code to the header. Filters wp_head.

Since: 2.0.0
Line: 221

public function wp_head(  );

wp_body_open()

Function to add custom code to wp_body_open().

Since: 2.0.0
Line: 236

public function wp_body_open(  );

Function to add the necessary code to wp_footer.

Since: 2.0.0
Line: 251

public function wp_footer(  );

the_content()

Function to add custom HTML before and after the post content. Filters the_content.

Since: 1.0
Line: 267

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

Returns: string — Filtered post content

the_excerpt_rss()

Function to add content to RSS feeds. Filters the_excerpt_rss and the_content_feed.

Since: 2.0.0
Line: 341

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

Returns: string — Filtered post content.

feed_title_text()

Get title text to be added after the content in the feed.

Since: 2.0.0
Line: 385

public function feed_title_text(  );

creditline()

Get the credit line - link to WebberZone Snippetz plugin page.

Since: 2.0.0
Line: 417

public function creditline(  );

process_placeholders()

Process placeholders.

Since: 2.0.0
Line: 441

public function process_placeholders( $input ): string;
TypeNameDescription
string$inputInput string.

Returns: string — $output Output string.