PHP Class WC_Admin_Attributes

Exibir arquivo Open project: woocommerce/woocommerce Class Usage Examples

Public Methods

Method Description
add_attribute ( ) Add Attribute admin panel.
edit_attribute ( ) Edit Attribute admin panel.
output ( ) Handles output of the attributes page in admin.

Private Methods

Method Description
get_posted_attribute ( ) : array Get and sanitize posted attribute data.
process_add_attribute ( ) : boolean | WP_Error Add an attribute.
process_delete_attribute ( ) : boolean Delete an attribute.
process_edit_attribute ( ) : boolean | WP_Error Edit an attribute.
valid_attribute_name ( string $attribute_name ) : boolean | WP_error See if an attribute name is valid.

Method Details

add_attribute() public static method

Shows the interface for adding new attributes.
public static add_attribute ( )

edit_attribute() public static method

Shows the interface for changing an attributes type between select and text.
public static edit_attribute ( )

output() public static method

Shows the created attributes and lets you add new ones or edit existing ones. The added attributes are stored in the database and can be used for layered navigation.
public static output ( )