\MainWP\DashboardMainWP_Meta_Boxes

Class MainWP_Meta_Boxes

Summary

Methods
Properties
Constants
select_sites_handle()
add_categories()
add_categories_handle()
add_tags()
add_tags_handle()
add_slug()
add_slug_handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
add_extra()
add_extra_handle()
No private properties found
N/A

Methods

select_sites_handle()

select_sites_handle(mixed  $post_id, mixed  $post_type) : integer

Method select_sites_handle()

Update Post meta for Select Sites Meta boxes.

Parameters

mixed $post_id

Post ID.

mixed $post_type

Post type.

Returns

integer —

$post_id Post ID.

add_categories()

add_categories(integer  $post_id = false) 

Method add_categories()

Add categories.

Parameters

integer $post_id

Post ID.

add_categories_handle()

add_categories_handle(integer  $post_id, string  $post_type) 

Method add_categories_handle()

Handle adding categories.

Parameters

integer $post_id

Post ID.

string $post_type

Post type.

add_tags()

add_tags(object  $post) 

Method add_tags()

Add tags to Post array.

Parameters

object $post

Post object.

add_tags_handle()

add_tags_handle(integer  $post_id, string  $post_type) 

Method add_tags_handle()

Add Tags to post array handler.

Parameters

integer $post_id

Post ID.

string $post_type

Post type.

add_slug()

add_slug(object  $post) 

Method add_slug()

Add Slug to Post object.

Parameters

object $post

Post object.

add_slug_handle()

add_slug_handle(integer  $post_id, string  $post_type) 

Method add_slug_handle()

Add post slug.

Parameters

integer $post_id

Post ID.

string $post_type

Post type.

add_extra()

add_extra(string  $title, string  $saveto, string  $prefix, object  $post) 

Method add_extra()

Add nounce to post object.

Parameters

string $title

Post title.

string $saveto

Save to.

string $prefix

Custom prefix.

object $post

Post object.

add_extra_handle()

add_extra_handle(string  $title, string  $saveto, string  $prefix, integer  $post_id, string  $post_type) : integer

Method add_extra_handle()

Update Post meta & add Security Nonce Prefix.

Parameters

string $title

Post title.

string $saveto

Where to save.

string $prefix

Custom prefix.

integer $post_id

Post ID.

string $post_type

Post type.

Returns

integer —

$post_id Post ID.