Skip to content

Instantly share code, notes, and snippets.

View patrickfreitasdev's full-sized avatar

Patrick de Freitas patrickfreitasdev

  • WPMU DEV
  • Perth | Australia
View GitHub Profile
View wpmudev-upload-mapping-custom-field.php
<?php
/**
* Plugin Name: [Forminator] Upload mapping to ACF image field
* Description: Solves a bug that prevents upload field mapping to ACF image field through post data form
* Author: Prashant Singh @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if (!defined('ABSPATH')) {
@patrickfreitasdev
patrickfreitasdev / wpmudev-forminator-fix-search-inputs-on-select-fields.php
Last active November 6, 2022 00:22 — forked from wpmudev-sls/sample-form.txt
[Forminator] Fix Search Inputs on Selec Fields - Ajax
View wpmudev-forminator-fix-search-inputs-on-select-fields.php
<?php
/**
* Plugin Name: [Forminator] Fix Search Inputs on Selec Fields - Ajax Load Support
* Plugin URI: https://premium.wpmudev.org
* Description: When you add a select field on the form and also add an address field with country enabled, the placeholder for all search fields (inside the dropdown options of each one) became the same. And even that you disable the search option in the select field, the search input will be displayed - this plugin fixes these problems.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* Jira Task: SLS-2407
* License: GPLv2 or later
*
View wpmudev-forminator-api-select-field-import.php
<?php
/**
* Plugin Name: [Forminator Pro] - Create form via API
* Plugin URI: https://premium.wpmudev.org/
* Description: Create a select along with name and email fields depending on selection (as of 1.12.1.1)
* Author: Alessandro Kaounas @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: FOR-448
* License: GPLv2 or later
*/
@patrickfreitasdev
patrickfreitasdev / forminator-change-upload-dir.php
Created June 26, 2021 17:38 — forked from wpmudev-sls/forminator-change-upload-dir.php
Forminator Pro - Change Upload Path to uploads/form_id
View forminator-change-upload-dir.php
<?php
/**
* Plugin Name: Forminator Pro - Change Upload Path
* Plugin URI: https://premium.wpmudev.org/
* Description: mu-plugin for changing the Forminator upload dir to /uploads/ID.
* Version: 1.0.0
* Author: Konstantinos Xenos @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
@patrickfreitasdev
patrickfreitasdev / forminator-entry-id-in-response.php
Created June 13, 2021 17:50 — forked from wpmudev-sls/forminator-entry-id-in-response.php
[Forminator] - Submission id in response messag. This snippet allows to use the submission id in response messages. The following macro can be used in the content `{submission_id}`
View forminator-entry-id-in-response.php
<?php
/**
* Plugin Name: [Forminator] - Submission id in response message
* Plugin URI: https://premium.wpmudev.org/
* Description: This snippet allows to use the submission id in response messages. The following macro can be used in the content `{submission_id}`
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@patrickfreitasdev
patrickfreitasdev / wpmudev-forminator-hidden-input-time-field.php
Last active November 6, 2022 00:26 — forked from wpmudev-sls/wpmudev-forminator-hidden-input-time-field.php
[Forminator] - Add time field to hidden input. Add time field to hidden input in format H:i:s
View wpmudev-forminator-hidden-input-time-field.php
<?php
/**
* Plugin Name: [Forminator] - Add time field to hidden input
* Plugin URI: https://premium.wpmudev.org/
* Description: Add time field to hidden input in format H:i:s (as of 1.9.2)
* Author: Alessandro Kaounas @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
View wpmudev-forminator-field-descriptions-tooltip.php
<?php
/**
* Plugin Name: [Forminator Pro] - Show field descriptions as tooltips
* Plugin URI: https://premium.wpmudev.org/
* Description: Replace existing field descriptions and show them as tooltips with tippy.js (as of 1.12.1)
* Author: Alessandro Kaounas @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: https://wordpress.org/support/topic/show-the-field-description-as-a-tooltip/
* License: GPLv2 or later
*/