PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
user-registration
/
includes
<?php /** * UserRegistration Form Functions * * Functions related to forms. * * @package UserRegistration/Functions * @version 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } function ur_get_form_fields( $form_id ) { $form_id = (int) $form_id; $form_fields = array(); if ( ! empty( $form_id ) ) { $post_content_array = ( $form_id ) ? UR()->form->get_form( $form_id, array( 'content_only' => true ) ) : array(); foreach ( $post_content_array as $row_index => $row ) { foreach ( $row as $grid_index => $grid ) { foreach ( $grid as $field_index => $field ) { $field_name = $field->general_setting->field_name; if ( $field_name ) { $form_fields[ $field_name ] = $field; } } } } } return $form_fields; } function ur_get_form_field_keys( $form_id ) { $form_fields = ur_get_form_fields( $form_id ); $field_keys = array(); if ( ! empty( $form_fields ) && is_array( $form_fields )) { $field_keys = array_keys( $form_fields ); } return $field_keys; } /** * Returns settings for all form fields in proper array format. * * Uses UR_FrontEnd_Form_Handler::get_form_field_data() function. * * @param integer $form_id Form Id. * @return array */ function ur_get_form_field_data( $form_id = 0 ) { $post_content_array = ( $form_id ) ? UR()->form->get_form( $form_id, array( 'content_only' => true ) ) : array(); $form_field_data = UR_Frontend_Form_Handler::get_form_field_data( $post_content_array ); return $form_field_data; }
[-] class-ur-shortcodes.php
[edit]
[-] class-ur-smart-tags.php
[edit]
[-] functions-ur-update.php
[edit]
[-] class-ur-cron.php
[edit]
[+]
admin
[-] class-ur-autoloader.php
[edit]
[+]
validation
[-] functions-ur-core.php
[edit]
[-] class-ur-user-approval.php
[edit]
[-] class-ur-install.php
[edit]
[+]
..
[-] functions-ur-notice.php
[edit]
[-] functions-ur-account.php
[edit]
[-] class-ur-background-updater.php
[edit]
[-] class-ur-logger.php
[edit]
[-] class-ur-email-approval.php
[edit]
[-] class-ur-email-confirmation.php
[edit]
[+]
stats
[+]
frontend
[-] class-ur-form-handler.php
[edit]
[+]
blocks
[-] class-ur-form-block.php
[edit]
[-] class-ur-post-types.php
[edit]
[+]
shortcodes
[-] functions-ur-template.php
[edit]
[-] class-ur-log-levels.php
[edit]
[-] functions-ur-form.php
[edit]
[-] class-ur-cache-helper.php
[edit]
[-] class-ur-emailer.php
[edit]
[+]
interfaces
[+]
libraries
[-] class-ur-query.php
[edit]
[-] class-ur-session-handler.php
[edit]
[-] class-ur-frontend-scripts.php
[edit]
[+]
RestApi
[+]
form
[-] class-ur-privacy.php
[edit]
[-] class-ur-ajax.php
[edit]
[-] functions-ur-page.php
[edit]
[+]
log-handlers
[-] class-ur-preview.php
[edit]
[-] functions-ur-deprecated.php
[edit]
[+]
abstracts
[-] class-ur-plugin-updater.php
[edit]