Properties

$init_icon

$init_icon

$in_edit

$in_edit : bool

Type

normal

$edit_mode_value

$edit_mode_value : null

Type

normal

$edit_array

$edit_array : array

Type

normal

$postmeta

$postmeta : array

Type

normal

$is_loaded

$is_loaded : bool

Type

normal

$set_field_type

$set_field_type

$form_nonce_added

$form_nonce_added : bool

Type

normal

$directory_nonce_added

$directory_nonce_added : bool

Type

normal

$custom_nonce_added

$custom_nonce_added : bool

Type

normal

Methods

__construct()

__construct() : mixed

Admin_Metabox constructor.

Returns

mixed

remove_meta_box()

remove_meta_box() : mixed

Returns

mixed

enter_title_here()

enter_title_here(string  $title, \WP_Post  $post) : string

Enter title placeholder

Parameters

string $title
\WP_Post $post

Returns

string

hide_metabox_restrict_content_shop()

hide_metabox_restrict_content_shop( $hide) : bool

Hide Woocommerce Shop page restrict content metabox

Parameters

$hide

Returns

bool

validation_types_continue_loop()

validation_types_continue_loop( $break,  $key,  $form_id,  $field_array) : bool

Filter validation types on loop

Parameters

$break
$key
$form_id
$field_array

Returns

bool

get_custom_post_meta()

get_custom_post_meta( $id) : mixed

Gets the role meta

Parameters

$id

Returns

mixed

admin_head()

admin_head() : mixed

Runs on admin head

Returns

mixed

add_metabox()

add_metabox() : mixed

Init the metaboxes

Returns

mixed

save_metabox_custom()

save_metabox_custom( $post_id,  $post) : mixed

Parameters

$post_id
$post

Returns

mixed

add_metabox_restrict_content()

add_metabox_restrict_content() : mixed

Returns

mixed

restrict_content_cb()

restrict_content_cb( $object,  $box) : mixed

Content restriction metabox

Parameters

$object
$box

Returns

mixed

add_taxonomy_metabox()

add_taxonomy_metabox() : mixed

Init the metaboxes

Returns

mixed

save_metabox_restrict_content()

save_metabox_restrict_content( $post_id,  $post) : mixed

Parameters

$post_id
$post

Returns

mixed

save_attachment_metabox_restrict_content()

save_attachment_metabox_restrict_content( $post_id) : mixed

Parameters

$post_id

Returns

mixed

um_category_access_fields_create()

um_category_access_fields_create() : mixed

Returns

mixed

um_category_access_fields_edit()

um_category_access_fields_edit( $term) : mixed

Parameters

$term

Returns

mixed

um_category_access_fields_save()

um_category_access_fields_save( $termID) : mixed

Parameters

$termID

Returns

mixed

load_metabox_directory()

load_metabox_directory( $object,  $box) : mixed

Load a directory metabox

Parameters

$object
$box

Returns

mixed

load_metabox_role()

load_metabox_role( $object,  $box) : mixed

Load a role metabox

Parameters

$object
$box

Returns

mixed

load_metabox_form()

load_metabox_form( $object,  $box) : mixed

Load a form metabox

Parameters

$object
$box

Returns

mixed

load_metabox_custom()

load_metabox_custom( $object,  $box) : mixed

Load admin custom metabox

Parameters

$object
$box

Returns

mixed

add_metabox_directory()

add_metabox_directory() : mixed

Add directory metabox

Returns

mixed

add_metabox_role()

add_metabox_role() : mixed

Add role metabox

Returns

mixed

add_metabox_form()

add_metabox_form() : mixed

Add form metabox

Returns

mixed

custom_submitdiv()

custom_submitdiv() : mixed

Returns

mixed

save_metabox_directory()

save_metabox_directory( $post_id,  $post) : mixed

Save directory metabox

Parameters

$post_id
$post

Returns

mixed

save_metabox_form()

save_metabox_form(int  $post_id, \WP_Post  $post) : mixed

Save form metabox.

Parameters

int $post_id
\WP_Post $post

Returns

mixed

load_modal_content()

load_modal_content() : mixed

Load modal content

Returns

mixed

field_input()

field_input( $attribute, null  $form_id = null, array  $field_args = array()) : mixed

Show field input for edit at modal field

Parameters

$attribute
null $form_id
array $field_args

Returns

mixed