mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- frontend field oembed
This commit is contained in:
@@ -4444,6 +4444,21 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
/* HTML */
|
||||
case 'oembed':
|
||||
$output .= '<div ' . $this->get_atts( $key, $classes, $conditional, $data ) . '>';
|
||||
|
||||
if ( isset( $data['label'] ) || ! empty( $data['icon'] ) ) {
|
||||
$output .= $this->field_label( $data['label'], $key, $data );
|
||||
}
|
||||
$response = wp_oembed_get( $_field_value );
|
||||
if ( empty( $response ) ) {
|
||||
$response = $_field_value;
|
||||
}
|
||||
$output .= '<div class="um-field-area">';
|
||||
$output .= '<div class="um-field-value">' . $response . '</div>';
|
||||
$output .= '</div>';
|
||||
break;
|
||||
/* HTML */
|
||||
case 'block':
|
||||
|
||||
Reference in New Issue
Block a user