add_filter( ‘wpforms_emails_mailer_get_attachments’, function( $attachments, $mailer ) { // Get the uploads directory path. $upload_dir = wp_upload_dir(); // Add your custom file path(s) $file_url = ‘/path/to/your/file.pdf’; // Convert URL to local file path. $file_path = str_replace( $upload_dir[‘baseurl’], $upload_dir[‘basedir’], $file_url ); //…Continue reading
/** Update ACF age field based on WPForms checkbox submission. @param int $post_id Post ID. @param array $fields Sanitized entry field values/properties. @param array $form_data Form settings/data. @param int $entry_id Entry ID. @return void */ function wpf_dev_update_age_field_from_submission( $post_id, $fields, $form_data,…Continue reading
/* shrinking header section */ .shrinker { background: transparent; height: (set your header height in pixels); transition: all .2s linear!important; -webkit-transition: all .2s linear!important; -moz-transition: all .2s linear!important; } .shrinker.elementor-sticky–effects { background: #fff; height: (set your header height after shrinking…Continue reading
/** * Main plugin class. * * Security / Maintainability / Accessibility notes: * – No user-supplied input is processed; configuration is fixed server-side. * – We scope changes to Jetpack Instant Search via its documented filter, so normal queries,…Continue reading