public static function init() { foreach (get_class_methods(__CLASS__) as $method) { if (!in_array($method, array('init', 'channels'))) { call_user_func(array(__CLASS__, $method)); } } # Trivial ones # User roles global $wp_roles; if (is_object($wp_roles)) { self::$roles = $wp_roles->role_names; } # ALL post statuses $post_statuses = array_merge(get_post_statuses(), array('auto-draft' => __('Auto Draft'), 'inherit' => __('Inherit', 'kc-settings'), 'trash' => __('Trash'), 'future' => __('Scheduled'))); asort($post_statuses); self::$post_statuses = $post_statuses; # Yes/No self::$yesno = array('0' => __('No', 'kc-settings'), '1' => __('Yes', 'kc-settings')); }