Yoast\WP\SEO\Dashboard\Application\Score_Results
Current_Scores_Repository::get_current_score_links()
Returns the links for the current scores of a score group.
Метод класса: Current_Scores_Repository{}
Хуков нет.
Возвращает
Массив<Строку,Строку>
. The current score links.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_current_score_links( $score_group, $content_type, ?Taxonomy $taxonomy, ?int $term_id ): array;
- $score_group(Score_Groups_Interface) (обязательный)
- The scoure group.
- $content_type(Content_Type) (обязательный)
- The content type.
- ?Taxonomy $taxonomy (обязательный)
- -
- ?int $term_id (обязательный)
- -
Код Current_Scores_Repository::get_current_score_links() Current Scores Repository::get current score links Yoast 24.4
protected function get_current_score_links( Score_Groups_Interface $score_group, Content_Type $content_type, ?Taxonomy $taxonomy, ?int $term_id ): array { return [ 'view' => $this->score_group_link_collector->get_view_link( $score_group, $content_type, $taxonomy, $term_id ), ]; }