Yoast\WP\SEO\Repositories
SEO_Links_Repository::find_all_by_target_post_id()
Retrieves all SEO Links by target post ID.
Метод класса: SEO_Links_Repository{}
Хуков нет.
Возвращает
SEO_Links[]
. The SEO Links.
Использование
$SEO_Links_Repository = new SEO_Links_Repository(); $SEO_Links_Repository->find_all_by_target_post_id( $target_post_id );
- $target_post_id(строка) (обязательный)
- The SEO Link's target post ID.
Код SEO_Links_Repository::find_all_by_target_post_id() SEO Links Repository::find all by target post id Yoast 23.4
public function find_all_by_target_post_id( $target_post_id ) { return $this->query() ->where( 'target_post_id', $target_post_id ) ->find_many(); }