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