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 );
| Type | Name | Description |
|---|---|---|
string | $post_type | Post Type. |
\WP_Post | $post | Post 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 );
| Type | Name | Description |
|---|---|---|
int | $post_id | Post 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( );