/** * Call this inside callback function to stop other registered callbacks from being called after * this one. If priority is given than only callbacks of that priority or less will be skipped. * * @param integer $priority - Priority (optional) * @return void */ public static function stop_propagation($priority = 0) { self::$propagate_limit = $priority ? $priority : self::get_current_priority(); }