Example #1
0
 /**
  * Handle filters / actions for the class
  *
  * @since 2.0
  */
 private function do_hook()
 {
     $args = func_get_args();
     if (empty($args)) {
         return false;
     }
     $name = array_shift($args);
     return pods_do_hook("api", $name, $args, $this);
 }
Example #2
0
 /**
  * Handle filters / actions for the class
  *
  * @since 2.0
  */
 private static function do_hook()
 {
     $args = func_get_args();
     if (empty($args)) {
         return false;
     }
     $name = array_shift($args);
     return pods_do_hook('data', $name, $args);
 }