Skip to content

Instantly share code, notes, and snippets.

@wpmudev-sls
wpmudev-sls / forminator-toggle-visibility.php
Created Jul 9, 2020
[Forminator] - Toggle field visibility. The following snippet will allow to toggle a field's visibility based on another field's value
View forminator-toggle-visibility.php
<?php
/**
* Plugin Name: [Forminator] - Toggle field visibility
* Plugin URI: https://premium.wpmudev.org/
* Description: The following snippet will allow to toggle a field's visibility based on another field's value
* Task: SLS-316
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / forminator-support-multi-currencies-in-currence-field.php
Created Jul 9, 2020
[Forminator] - Support multiple currencies in the currency field.
View forminator-support-multi-currencies-in-currence-field.php
<?php
/**
* Plugin Name: [Forminator] - Support multiple currencies in the currency field.
* Description: [Forminator] - Support multiple currencies in the currency field.
* Jira: SLS-303
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / forminator-store-uploads-files-in-separated-folder-user-id.php
Created Jul 9, 2020
Store uploaded files in separated folders by user and form id - wp-content/uploads/forminator/[current-user-id]/[form-id]
View forminator-store-uploads-files-in-separated-folder-user-id.php
<?php
/**
* Plugin Name: [Forminator] - Store uploaded files in separated folders by user and form id
* Description: [Forminator] - Store uploaded files in separated folders by user and form id
* wp-content/uploads/forminator/[current-user-id]/[form-id]
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) { exit; } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { return; }
@wpmudev-sls
wpmudev-sls / smush-temp-fix-performance-issues.php
Last active Jul 8, 2020
[Smush Pro] - Fix Image resize issue and google font display base on HummingBird test's result
View smush-temp-fix-performance-issues.php
<?php
/**
* Plugin Name: [Smush Pro] - Fix Image resize issue and google font display base on HummingBird test's result
* Description: [Smush Pro] - Fix Image resize issue and google font display base on HummingBird test's result
* Jira: SLS-284/SLS-272
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / forminator-entry-id-in-response.php
Created Jul 7, 2020
[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
*/
@wpmudev-sls
wpmudev-sls / forminator-entry-id-in-response.php
Created Jul 7, 2020
[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
*/
@wpmudev-sls
wpmudev-sls / forminator-skip-steps-in-pagination-form.php
Created Jul 6, 2020
Forminator - Skip Steps in Pagination Form
View forminator-skip-steps-in-pagination-form.php
<?php
/**
* Plugin Name: [Forminator] Skip Steps in Pagination Form
* Plugin URI: https://premium.wpmudev.org
* Description: With this snippet and some extra configurations in your form is possible to skip steps according to user-selected choices in a control field - works with checkboxes, radio buttons and selects.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* Jira Task: FOR-428 and SLS-263
* License: GPLv2 or later
*
@wpmudev-sls
wpmudev-sls / hustle-add-to-mautic-on-registration.php
Created Jul 3, 2020
[Hustle] - Add user to Mautic upon registration
View hustle-add-to-mautic-on-registration.php
<?php
/**
* Plugin Name: [Hustle] - Add user to Mautic upon registration
* Plugin URI: https://premium.wpmudev.org/
* Description: Adds users to Mautic once registered
* Task: SLS-276
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / forminator-save-user-name-on-quiz-submission.php
Last active Jul 9, 2020
[Forminator] - Save user name on quiz submission
View forminator-save-user-name-on-quiz-submission.php
<?php
/**
* Plugin Name: [Forminator] - Save user name on quiz submission
* Description: [Forminator] - Save user name on quiz submission - Alternative MU plugin forminator-quiz-user-data.php: https://gist.github.com/wpmudev-sls/e885d070586a60eb7b32a03007919d97
* Jira: SLS-76
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@wpmudev-sls
wpmudev-sls / smush-force-resmush.php
Created Jun 30, 2020
[Smush] - Force Re-Smush. This snippet should be used with caution and only temporarily, while the image scan is running. It has to be removed once done scanning as it will always return that all images need to be Smushed. When rechecking images this snippet will return all images that need Re-Smushing. This way admin can Smush them all again.
View smush-force-resmush.php
<?php
/**
* Plugin Name: [Smush] - Force Re-Smush
* Plugin URI: https://premium.wpmudev.org/
* Description: This snippet should be used with caution and only temporarily, while the image scan is running. It has to be removed once done scanning as it will always return that all images need to be Smushed. When rechecking images this snippet will return all images that need Re-Smushing. This way admin can Smush them all again.
* Task: SLS-262
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
You can’t perform that action at this time.