PHP 클래스 Yoast_Dashboard_Widget, wordpress-seo

파일 보기 프로젝트 열기: yoast/wordpress-seo

보호된 프로퍼티들

프로퍼티 타입 설명
$statistics WPSEO_Statistics

공개 메소드들

메소드 설명
__construct ( WPSEO_Statistics $statistics = null )
add_dashboard_widget ( ) Adds dashboard widget to WordPress
clear_cache ( ) Clears the dashboard widget items cache
display_dashboard_widget ( ) Display the dashboard widget
enqueue_dashboard_stylesheet ( ) Enqueue's stylesheet for the dashboard if the current page is the dashboard
wpseo_dashboard_overview_class ( array $classes ) : array Adds CSS classes to the dashboard widget.

비공개 메소드들

메소드 설명
filter_items ( array $item ) : boolean Filter items if they have a count of zero
get_seo_scores_with_post_count ( ) : array Set the SEO scores belonging to their SEO score result
get_title_for_rank ( WPSEO_Rank $rank ) : string Returns a dashboard widget label to use for a certain rank
map_rank_to_widget ( WPSEO_Rank $rank ) : array Converts a rank to data usable in the dashboard widget
set_statistic_items_for_this_user ( array | boolean $transient ) : mixed Set the cache for a specific user
show_widget ( ) : boolean Returns true when the dashboard widget should be shown.
statistic_items ( ) : array An array representing items to be added to the At a Glance dashboard widget

메소드 상세

__construct() 공개 메소드

public __construct ( WPSEO_Statistics $statistics = null )
$statistics WPSEO_Statistics The statistics class to retrieve statistics from.

add_dashboard_widget() 공개 메소드

Adds dashboard widget to WordPress

clear_cache() 공개 메소드

Clears the dashboard widget items cache
public clear_cache ( )

display_dashboard_widget() 공개 메소드

Display the dashboard widget

enqueue_dashboard_stylesheet() 공개 메소드

Enqueue's stylesheet for the dashboard if the current page is the dashboard

wpseo_dashboard_overview_class() 공개 메소드

Adds CSS classes to the dashboard widget.
public wpseo_dashboard_overview_class ( array $classes ) : array
$classes array An array of postbox CSS classes.
리턴 array

프로퍼티 상세

$statistics 보호되어 있는 프로퍼티

protected WPSEO_Statistics $statistics
리턴 WPSEO_Statistics