Skip to content

Instantly share code, notes, and snippets.

View glaubersilva's full-sized avatar

Glauber Silva glaubersilva

View GitHub Profile
<?php
/**
* Plugin Name: [WPMU DEV] Delete wp_snapshot_backup_schedule option
* Plugin URI: https://glaubersilva.me/
* Description: Sometimes the schedule option gets corrupted in the database and when you try to exchange the date-time in Snapshot you get the message: "Request for a backup schedule was not successful." – This plugin helps you to solve this problem, just access: YOUR-DOMAIN.COM/?delete=wp_snapshot_backup_schedule.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://glaubersilva.me/
* Task: SLS-1674
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Hustle] Fix Memory Size Error
* Plugin URI: https://wpmudev.com/
* Description: When the site has a huge number of posts (or any other CPT as product for example) the queries used to get the items to be used on the wp_localize_script( 'optin_admin_scripts', 'optinVars', $optin_vars ) method generates a fatal error related to memory size. This plugin fix this temporally while a final solutions isn't implemented on the core of the Hustle plugin.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-3394 and SLS-3326
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [WPMU DEV] Prevents PayPal Inputs Zoom
* Plugin URI: https://wpmudev.com/
* Description: Chrome mobile has a bug that auto zooms the screen when you select an input field from an embed page - EG.: the iFrame used by the PayPal checkout. This plugin is a workaround for this situation.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-3307
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Examples of custom messages for payment errors
* Plugin URI: https://wpmudev.com/
* Description: IMPORTANT: you can replace the "alerts" with your custom code like modals or pop-ups.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-2024
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-forminator-editor-access.php
Created June 4, 2022 15:03 — forked from wpmudev-sls/wpmudev-forminator-editor-access.php
[Forminator] Grants Full Acesses For Editor Role. This plugin allows users with the editor role to have full access (view and save) to the Forminator administrative pages.
<?php
/**
* Plugin Name: [Forminator] Grants Full Access For Editor Role.
* Plugin URI: https://premium.wpmudev.org/
* Description: This plugin allows users with the editor role to have full access (view and save) to the Forminator administrative pages.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: 0/11289012348292/1169742392170370
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [SmartCrawl] Intercept Redirections
* Plugin URI: https://premium.wpmudev.org/
* Description: Keeps user activation key (generated by Forminator) and performs other tweaks on redirect.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: SLS-1872
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] - Stock Manager
* Plugin URI: https://wpmudev.com/
* Description: Limit submissions based on stock availability.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Jira Task: SLS-3482
* License: GPLv2 or later
*/
<?php
/**
* Plugin Name: [Hustle] Prevents Exit Pop-Up On PayPal Checkout
* Plugin URI: https://wpmudev.com/
* Description: Useful for not triggering Pop-Ups giving discounts if the member is already on the final payment stage.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-3370
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Automatic Actions
* Plugin URI: https://wpmudev.com
* Description: *** ACTION 1 - When a field with the "sls-automatic-next-step" class became visible, this plugin automatically clicks on the "Next" button in case it exists. *** ACTION 2 - When a field with the "sls-automatic-submit" class became visible, this plugin automatically clicks on the "Submit" button. *** SETUP - Go to "Your Field > Edit Field > Styling" and add the "sls-automatic-next-step" class for active the action 1 OR add the "sls-automatic-submit" class to active the action 2 (always add the class name without the quotes)
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com
* Jira Task: SLS-1399 and SLS-3171
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-forminator-skip-empty-pages.php
Created June 4, 2022 15:02 — forked from wpmudev-sls/wpmudev-forminator-skip-empty-pages.php
[Forminator] Skip Empty Pages on Pagination Forms
<?php
/**
* Plugin Name: [Forminator] Skip Empty Pages on Pagination Forms
* Plugin URI: https://wpmudev.com/
* Description: If the page is empty, automatically go to the next or previous page.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-2261 and SLS-2500
* License: GPLv2 or later
*