Prepares links for the request.
protected prepare_links ( WP_Post $post ) : array | ||
$post | WP_Post | Post object. |
return | array | Links for the given post. |
/** * Prepare links for the request. * * @param WP_Post $post Post object. * @return array Links for the given post. */ protected function prepare_links($post) { $links = parent::prepare_links($post); $filter_name = "rooftop_prepare_{$post->post_type}_links"; $links = apply_filters($filter_name, $links, $post); return $links; }