Server IP : 104.21.38.3 / Your IP : 162.158.170.219 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/lapma.in/wp-content/plugins/everest-forms/includes/ |
Upload File : |
<?php /** * EverestForms Conditional Functions * * Functions for determining the current query/page. * * @package EverestForms/Functions * @version 1.2.0 */ defined( 'ABSPATH' ) || exit; if ( ! function_exists( 'is_ajax' ) ) { /** * Is_ajax - Returns true when the page is loaded via ajax. * * @return bool */ function is_ajax() { return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : defined( 'DOING_AJAX' ); } } /** * Check if the string is JSON. * * @param string $string String to check. * @return bool */ function evf_is_json( $string ) { return is_string( $string ) ? is_object( json_decode( $string ) ) : false; } /** * Checks if field exists within the form. * * @since 1.5.7 * @param int $form_id Form ID. * @param string $field Field ID. * @return bool True if the field exists in the form. */ function evf_is_field_exists( $form_id, $field ) { $form_obj = evf()->form->get( $form_id ); $form_data = ! empty( $form_obj->post_content ) ? evf_decode( $form_obj->post_content ) : ''; if ( ! empty( $form_data['form_fields'] ) ) { foreach ( $form_data['form_fields'] as $form_field ) { if ( $field === $form_field['type'] ) { return true; } } } return false; }