Skip to content

Instantly share code, notes, and snippets.

@engelen
Created May 9, 2013 15:49
Show Gist options
  • Save engelen/5548323 to your computer and use it in GitHub Desktop.
Save engelen/5548323 to your computer and use it in GitHub Desktop.
<?php
class JWF_Fields
{
protected static $fieldtypes = array();
/**
* Using a private constructor to make sure the class doesn't get instantiated
*
* @access private
*/
private function __construct() {}
/**
* Initialize functionality
*
* @since 0.1
*/
public static function init()
{
add_action( 'init', array( 'JWF_Fields', 'register_builtin_fieldtypes' ) );
}
/**
* Load built-in field types
*
* @since 0.1
*/
public static function register_builtin_fieldtypes()
{
}
/**
* Get built-in field IDs
*
* @since 0.1
*
* @return array Returns an array of built-in fields IDs (strings)
*/
public static function get_builtin_fieldtypes()
{
}
}
JWF_Fields::init();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment