Server IP : 104.21.14.48 / Your IP : 18.222.112.112 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/profile-builder/admin/advanced-settings/includes/fields/ |
Upload File : |
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; $text = wppb_toolbox_get_settings( 'fields', 'send-credentials-text' ); if ( !empty( $text ) ) add_filter( 'wppb_send_credentials_checkbox_logic', 'wppb_toolbox_send_credentials_checkbox_text', 10, 2 ); function wppb_toolbox_send_credentials_checkbox_text($requestdata, $form) { $text = wppb_toolbox_get_settings( 'fields', 'send-credentials-text' ); return '<li class="wppb-form-field wppb-send-credentials-checkbox"><label for="send_credentials_via_email"><input id="send_credentials_via_email" type="checkbox" name="send_credentials_via_email" value="sending"'.( ( isset( $request_data['send_credentials_via_email'] ) && ( $request_data['send_credentials_via_email'] == 'sending' ) ) ? ' checked' : '' ).'/>'. esc_html( $text ).'</label></li>'; }