register_field_type() public static method

Add a new Pod field type
Since: 2.3
public static register_field_type ( string $type, string $file = null ) : array
$type string The new field type identifier
$file string The new field type class file location
return array Field Type data
示例#1
0
/**
 * Add a new Pod field type
 *
 * @see PodsForm::register_field_type
 *
 * @param string $type The new field type identifier
 * @param string $file The new field type class file location
 *
 * @return array Field type array
 * @since 2.3
 */
function pods_register_field_type($type, $file = null)
{
    return PodsForm::register_field_type($type, $file);
}