PHP 클래스 WPSEO_Social_Admin, wordpress-seo

상속: extends WPSEO_Metabox
파일 보기 프로젝트 열기: yoast/wordpress-seo 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Class constructor
get_meta_boxes ( string $post_type = 'post' ) : array Define the meta boxes for the Social tab
get_meta_section ( ) : WPSEO_Metabox_Tab_Section Returns the metabox section for the social settings.
og_data_compare ( WP_Post $post ) This method will compare opengraph fields with the posted values.
save_meta_boxes ( array $field_defs ) : array Filter over the meta boxes to save, this function adds the Social meta boxes.
tab_content ( ) : string
tab_header ( ) : string
translate_meta_boxes ( ) Translate text strings for use in the meta box

비공개 메소드들

메소드 설명
get_social_tab_content ( string $medium, array $meta_field_defs ) : string Generates the html for a social settings tab for one of the supported social media.

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( )

get_meta_boxes() 공개 메소드

Define the meta boxes for the Social tab
또한 보기: WPSEO_Meta::get_meta_field_defs()
사용 중단: 1.5.0
사용 중단: use WPSEO_Meta::get_meta_field_defs()
public get_meta_boxes ( string $post_type = 'post' ) : array
$post_type string Optional post type string.
리턴 array Array containing the meta boxes

get_meta_section() 공개 메소드

Returns the metabox section for the social settings.
public get_meta_section ( ) : WPSEO_Metabox_Tab_Section
리턴 WPSEO_Metabox_Tab_Section

og_data_compare() 공개 메소드

When fields are changed, the facebook cache will be purge.
public og_data_compare ( WP_Post $post )
$post WP_Post Post instance.

save_meta_boxes() 공개 메소드

Filter over the meta boxes to save, this function adds the Social meta boxes.
public save_meta_boxes ( array $field_defs ) : array
$field_defs array Array of metaboxes to save.
리턴 array

tab_content() 공개 메소드

사용 중단: 3.0 Removed.
public tab_content ( ) : string
리턴 string

tab_header() 공개 메소드

사용 중단: 3.0 Removed.
public tab_header ( ) : string
리턴 string

translate_meta_boxes() 공개 정적인 메소드

IMPORTANT: if you want to add a new string (option) somewhere, make sure you add that array key to the main meta box definition array in the class WPSEO_Meta() as well!!!!
public static translate_meta_boxes ( )