/** * Return an instance of this class. * * @since 0.0.1 * * @return object|Lsx A single instance of this class. */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Register a taxonomy with LSX * * @since 0.0.1 * */ function lsx_register_taxonomy($taxonomy, $post_type, $args = null) { $taxonomies = Lsx_post_types::get_instance(); $taxonomies->register_taxonomy($taxonomy, $post_type, $args); }