mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- init commit
This commit is contained in:
@@ -665,6 +665,21 @@ if ( ! class_exists( 'um\core\Builtin' ) ) {
|
||||
),
|
||||
),
|
||||
),
|
||||
'oembed' => array(
|
||||
'name' => __( 'oEmbed', 'ultimate-member' ),
|
||||
'col1' => array( '_title', '_metakey', '_help', '_default', '_visibility' ),
|
||||
'col2' => array( '_label', '_placeholder', '_public', '_roles', '_validate', '_custom_validate' ),
|
||||
'col3' => array( '_required', '_editable', '_icon' ),
|
||||
'validate' => array(
|
||||
'_title' => array(
|
||||
'mode' => 'required',
|
||||
'error' => __( 'You must provide a title', 'ultimate-member' ),
|
||||
),
|
||||
'_metakey' => array(
|
||||
'mode' => 'unique',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
/*'group' => array(
|
||||
'name' => 'Field Group',
|
||||
|
||||
@@ -1711,6 +1711,12 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
|
||||
break;
|
||||
|
||||
case 'oembed':
|
||||
|
||||
$array['input'] = 'url';
|
||||
|
||||
break;
|
||||
|
||||
case 'date':
|
||||
|
||||
$array['input'] = 'text';
|
||||
@@ -2649,6 +2655,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
}
|
||||
break;
|
||||
/* URL */
|
||||
case 'oembed':
|
||||
case 'url':
|
||||
$output .= '<div ' . $this->get_atts( $key, $classes, $conditional, $data ) . '>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user