public static function is_allowed_type($type) { // Only notify for allowed types $allowed_types = apply_filters('falcon.connector.wordpress.post_types', array('post')); return in_array($type, $allowed_types); }