Recent

Metabox class

Metabox

Metabox class to register the metabox for the plugin.

Namespace: WebberZone\Contextual_Related_Posts\Admin
Since: 3.5.0
Source: includes/admin/class-metabox.php line 23

Methods

__construct()

Main constructor class.

Line: 28

public function __construct(  );

add_meta_box() static

Function to add meta box in Write screens of Post, Page and Custom Post Types.

Since: 3.5.0
Line: 44

static public function add_meta_box( $post_type, $post );
TypeNameDescription
string$post_typePost Type.
\WP_Post$postPost object.

call_meta_box() static

Function to call the meta box.

Since: 3.5.0
Line: 101

static public function call_meta_box(  );

save_meta_box() static

Function to save the meta box.

Since: 3.5.0
Line: 253

static public function save_meta_box( $post_id );
TypeNameDescription
int$post_idPost ID.

get_posts_action() static

Get posts based on the search term.

Since: 3.5.0
Line: 374

static public function get_posts_action(  );

admin_enqueue_scripts() static

Enqueue admin scripts for metabox. Only on edit.php screens when the metabox is loaded.

Since: 3.4.0
Line: 459

static public function admin_enqueue_scripts(  );