Exemplo n.º 1
0
 private function valid_per_post($post)
 {
     if (!class_exists('WPDD_Utils') || !method_exists('WPDD_Utils', 'page_has_layout') || !is_object($post)) {
         return false;
     }
     if (self::$layout_id = WPDD_Utils::page_has_layout($post->ID)) {
         self::$layout_id = WPDD_Utils::get_layout_id_from_post_name(self::$layout_id);
         return true;
     }
     return false;
 }