PATH:
home
/
lab2454c
/
sothebankuab.com
/
wp-content
/
plugins
/
wpforms
/
src
/
SmartTags
/
SmartTag
<?php namespace WPForms\SmartTags\SmartTag; /** * Class FieldId. * * @since 1.6.7 */ class FieldId extends SmartTag { /** * Get smart tag value. * * @since 1.6.7 * * @param array $form_data Form data. * @param array $fields List of fields. * @param string $entry_id Entry ID. * * @return string */ public function get_value( $form_data, $fields = [], $entry_id = '' ) { $attributes = $this->get_attributes(); if ( ! isset( $attributes['field_id'] ) || $attributes['field_id'] === '' ) { return ''; } $field_parts = explode( '|', $attributes['field_id'] ); $field_id = $field_parts[0]; if ( ! isset( $fields[ $field_id ] ) || $fields[ $field_id ] === '' ) { return ''; } $field_key = ! empty( $field_parts[1] ) ? sanitize_key( $field_parts[1] ) : 'value'; $value = isset( $fields[ $field_id ][ $field_key ] ) ? wpforms_sanitize_textarea_field( $fields[ $field_id ][ $field_key ] ) : ''; /** * Modify value for the `field_id` smart tag. * * @since 1.5.3 * @deprecated 1.6.7 * * @param string Smart tag value. */ return (string) apply_filters_deprecated( 'wpforms_field_smart_tag_value', [ $value ], '1.6.7', 'wpforms_smarttags_process_fieldid_value' ); } }
[-] FormId.php
[edit]
[-] PageId.php
[edit]
[+]
..
[-] Date.php
[edit]
[-] UserMeta.php
[edit]
[-] AuthorDisplay.php
[edit]
[-] AuthorId.php
[edit]
[-] UrlLogin.php
[edit]
[-] UrlReferer.php
[edit]
[-] FieldHtmlId.php
[edit]
[-] PageUrl.php
[edit]
[-] UserFirstName.php
[edit]
[-] PageTitle.php
[edit]
[-] UserEmail.php
[edit]
[-] UserFullName.php
[edit]
[-] UserIp.php
[edit]
[-] UserId.php
[edit]
[-] AdminEmail.php
[edit]
[-] FieldValueId.php
[edit]
[-] FieldId.php
[edit]
[-] Generic.php
[edit]
[-] QueryVar.php
[edit]
[-] UrlRegister.php
[edit]
[-] UserLastName.php
[edit]
[-] UrlLogout.php
[edit]
[-] AuthorEmail.php
[edit]
[-] UserDisplay.php
[edit]
[-] FormName.php
[edit]
[-] UrlLostPassword.php
[edit]
[-] SmartTag.php
[edit]