Skip to content

Instantly share code, notes, and snippets.

View jadealombro's full-sized avatar
👽

Jade jadealombro

👽
  • Montreal, Canada
View GitHub Profile
@saltnpixels
saltnpixels / save_upload_field_to_custom_field.php
Last active September 17, 2024 20:43
gravity form upload file to media library and use attachment ID in custom field
add_action( 'gform_after_create_post', 'gf_add_to_media_library', 10, 3 );
/**
* Save file upload fields under custom post field to the library
*
* @param $post_id The post identifier
* @param $entry The entry
* @param $form The form
*/
@jaredatch
jaredatch / custom-validation.js
Last active October 18, 2024 02:02
WPForms adding a custom validation rule
;(function($) {
var JA_Custom_Validation = {
/**
* Start the engine.
*
* @since 1.0.0
*/
init: function() {