Server IP : 172.67.157.199 / Your IP : 18.188.68.169 [ 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/chroot/var/www/wp-content/plugins/gravityforms/includes/fields/ |
Upload File : |
<?php if ( ! class_exists( 'GFForms' ) ) { die(); } class GF_Field_Option extends GF_Field { public $type = 'option'; function get_form_editor_field_settings() { return array( 'product_field_setting', 'option_field_type_setting', 'conditional_logic_field_setting', 'prepopulate_field_setting', 'label_setting', 'admin_label_setting', 'label_placement_setting', 'default_value_setting', 'placeholder_setting', 'description_setting', 'css_class_setting', ); } public function get_form_editor_field_title() { return esc_attr__( 'Option', 'gravityforms' ); } /** * Returns the field's form editor description. * * @since 2.5 * * @return string */ public function get_form_editor_field_description() { return esc_attr__( 'Allows users to select options for products created by a product field.', 'gravityforms' ); } /** * Returns the field's form editor icon. * * This could be an icon url or a gform-icon class. * * @since 2.5 * * @return string */ public function get_form_editor_field_icon() { return 'gform-icon--misc'; } } GF_Fields::register( new GF_Field_Option() );