name = 'tab'; $this->label = 'Tab Divider'; $this->category = 'layout'; } public function render( $field, $value = '', $name = null ) { $is_endpoint = ! empty( $field['endpoint'] ); $label = ! empty( $field['label'] ) ? $field['label'] : 'Tab'; $slug = sanitize_title( $field['name'] ?? $label ); if ( $is_endpoint ) { echo '
'; return; } echo '
'; echo '

'; echo ' '; echo esc_html( $label ); echo '

'; echo '
'; } public function format_value( $value, $post_id, $field ) { return null; } public function sanitize( $value, $field ) { return null; } }