PHP Класс WC_Admin_Attributes

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
add_attribute ( ) Add Attribute admin panel.
edit_attribute ( ) Edit Attribute admin panel.
output ( ) Handles output of the attributes page in admin.

Приватные методы

Метод Описание
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.

Описание методов

add_attribute() публичный статический Метод

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

edit_attribute() публичный статический Метод

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

output() публичный статический Метод

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 ( )