PHP Класс Yoast_Dashboard_Widget, wordpress-seo

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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