PHP 클래스 WC_Admin_Attributes

파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
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 ( )