WC_Shipping_Shipcloud_Cpt_Parcel_Template
in package
Table of Contents
- $_instance : object
- The Single instance of the class
- $api : object
- add_menu_item() : void
- Adding Parcels to Woo Menu
- admin_enqueue_scripts() : void
- Enqueues admin related scripts and styles.
- box_settings() : string
- Settings Box
- get_create_link() : string
- Builds link where a new template can be created.
- instance() : object
- Main Instance
- meta_boxes() : void
- Adding Metaboxes
- notice_area() : void
- Notice Area
- register_post_type() : void
- Registering Post type
- remove_all_messages() : array<string|int, mixed>
- Removing all messages
- save_post() : void
- Saving data
- __construct() : void
- Construct
- add_admin_notice() : void
- Output an admin notice.
- init() : void
- Initializing Post type
- log() : void
- Output a debug message.
Properties
$_instance
The Single instance of the class
protected
static object
$_instance
=
ull
$api
private
object
$api
Methods
add_menu_item()
Adding Parcels to Woo Menu
public
add_menu_item() : void
Return values
void —admin_enqueue_scripts()
Enqueues admin related scripts and styles.
public
admin_enqueue_scripts() : void
Return values
void —box_settings()
Settings Box
public
box_settings() : string
Return values
string —get_create_link()
Builds link where a new template can be created.
public
get_create_link() : string
Return values
string —instance()
Main Instance
public
static instance() : object
Return values
object —meta_boxes()
Adding Metaboxes
public
meta_boxes() : void
Return values
void —notice_area()
Notice Area
public
notice_area() : void
Return values
void —register_post_type()
Registering Post type
public
register_post_type() : void
Return values
void —remove_all_messages()
Removing all messages
public
remove_all_messages(array<string|int, mixed> $messages) : array<string|int, mixed>
Parameters
- $messages : array<string|int, mixed>
Return values
array<string|int, mixed> —save_post()
Saving data
public
save_post(int $post_id) : void
Parameters
- $post_id : int
Return values
void —__construct()
Construct
private
__construct() : void
Return values
void —add_admin_notice()
Output an admin notice.
private
add_admin_notice(string $message[, string $type = 'info' ][, bool $dismissible = true ]) : void
Parameters
- $message : string
-
Debug message.
- $type : string = 'info'
-
Message type.
- $dismissible : bool = true
-
Message type.
Return values
void —init()
Initializing Post type
private
init() : void
Return values
void —log()
Output a debug message.
private
log(string $message[, string $level = 'info' ][, mixed $context = [] ]) : void
Parameters
- $message : string
-
Debug message.
- $level : string = 'info'
-
Debug level.
- $context : mixed = []
-
The Debug context.
