public function permalink() { $permalink = get_permalink($this->ID); if (Filter::isUrl($permalink)) { return $this->permalink = $permalink; } }
public static function getArchiveUrl() { $url = get_post_type_archive_link((new static())->post_type); if (Filter::isUrl($url)) { return $url; } }
public function url() { $url = wp_get_attachment_url($this->ID); if (Filter::isUrl($url)) { return $this->url = $url; } }