Change “City” To Town/City

/** * Change the label of the “City” field into a “Town/City” field. * * @param array[] $fields * @return array[] */ add_action( ‘init’, function ( $fields ) { $fields = charitable()->donation_fields(); $field = $fields->get_field( ‘city’ ); $field->label = ‘Town/City’;…Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Gravity Forms Auto-populate Date

/** * Gravity Wiz // Gravity Forms // Populate Date * * Provides the ability to populate a Date field with a modified date based on the current date or a user-submitted date. * * @version 2.8 * @author David…Continue reading