WordPress Debugging
define( ‘WP_DEBUG’, true ); define( ‘SAVEQUERIES’, true );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
define( ‘WP_DEBUG’, true ); define( ‘SAVEQUERIES’, true );Continue reading
/** * Custom function to change the name attribute of hidden fields in any form. * * @link https://wpforms.com/developers/how-to-change-the-name-attribute-of-a-hidden-field/ */ function wpf_field_properties_hidden( $properties, $field, $form_data ) { // Optional, you can limit to specific forms. Below, we restrict output to…Continue reading
function wpf_remove_currency_symbol() { ?>Continue reading
/* Description: Enhance your WordPress site with a post view tracking system. This snippet uses a one-hour cookie to avoid inflating counts, offers a get_post_views() function for developers, a [post_views] shortcode for users, and adds a sortable “Views” column to…Continue reading
/** * Add field values for dropdown, checkboxes, and multiple choice fields * * @link https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_fields_show_options_setting’, ‘__return_true’ );Continue reading
.wpforms-container input[type=radio], .wpforms-container input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;} .wpforms-container input[type=radio] + label, .wpforms-container input[type=checkbox] + label { padding: 5px 10px !important; background-color:…Continue reading
.wpforms-container form#wpforms-form-1000 input[type=radio], .wpforms-container form#wpforms-form-1000 input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .wpforms-container form#wpforms-form-1000 input[type=radio] + label, .wpforms-container form#wpforms-form-1000 input[type=checkbox] + label {…Continue reading
add_action(‘wpforms_wp_footer_end’, function () { ?>Continue reading
/** * Dynamically set Stripe payment description to include the current page/post title. * * @link https://wpforms.com/developers/ * * @param array $form_data Form data and settings. * @param array $entry Entry data. * * @return array */ function wpf_dev_process_form_data( $form_data,…Continue reading