예제 #1
0
 /**
  * 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;
 }
예제 #2
0
/**
 * 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);
}