Created
May 9, 2013 15:49
-
-
Save engelen/5548323 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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