Esempio n. 1
0
 public static function filter($content_excerpt)
 {
     $post_type = get_post_type();
     if ($post_type && ezphp::$included_post_types) {
         // Specific inclusions?
         if (!in_array($post_type, ezphp::$included_post_types, TRUE)) {
             return $content_excerpt;
         }
     }
     // Exclude.
     if ($post_type && ezphp::$excluded_post_types) {
         // Specific exclusions?
         if (in_array($post_type, ezphp::$excluded_post_types, TRUE)) {
             return $content_excerpt;
         }
     }
     // Exclude.
     return ezphp::evaluate($content_excerpt);
 }