WooCommerce Code Reference

Search results

WC_Admin_Meta_Boxes

WC_Admin_Meta_Boxes.

Table of Contents

$saved_meta_boxes Is meta boxes saved once? bool
$meta_box_errors Meta box error messages. array
__construct() Constructor. mixed
add_error() Add an error message. mixed
save_errors() Save errors to an option. mixed
output_errors() Show any stored error messages. mixed
add_meta_boxes() Add WC Meta boxes. mixed
remove_meta_boxes() Remove bloat. mixed
rename_meta_boxes() Rename core meta boxes. mixed
save_meta_boxes() Check if we're saving, the trigger an action based on the post type. mixed

Properties

Methods

add_error()

Add an error message.

public static add_error( $text : string ) : mixed
Parameters
$text : string

Error to add.

Return values
mixed

save_meta_boxes()

Check if we're saving, the trigger an action based on the post type.

public save_meta_boxes( $post_id : int , $post : object ) : mixed
Parameters
$post_id : int

Post ID.

$post : object

Post object.

Return values
mixed
Back to the top