Skip to content

Instantly share code, notes, and snippets.

View glaubersilva's full-sized avatar

Glauber Silva glaubersilva

View GitHub Profile
<?php
/**
* Plugin Name: [Hustle] - Insert Forminator submissions by AJAX
* Plugin URI: https://wpmudev.com/
* Description: This snippet preserves all Hustle integrations.
* Task: SLS-3648
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* License: GPLv2 or later
*/
<?php
/**
* Plugin Name: [Snapshot] Skip tables without the wp-config base prefix
* Plugin URI: https://premium.wpmudev.org/
* Description: Useful when the database has a lot of duplicate tables for staging environments.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*
* @package WPMUDEV_Snapshot_Skip_Tables_Without_Base_Prefix
<?php
/**
* Plugin Name: [Forminator] Fix Trello Empty Due Date
* Plugin URI: https://premium.wpmudev.org
* Description: When Trello due date is not set on the form submission, the data isn't sent to Trello - this snippet fixes this problem.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* Jira Task: SLS-2465
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-forminator-reset-user-password.php
Created June 4, 2022 15:10 — forked from wpmudev-sls/wpmudev-forminator-reset-user-password.php
After activating the user, redirects to the reset user password WP default page.
<?php
/**
* Plugin Name: [Forminator] Reset User Password
* Plugin URI: https://wpmudev.com
* Description: After activating the user, redirects to the reset user password WP default page.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com
* Jira Task: SLS-3313
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Sends Quiz Personality Description by Email
* Plugin URI: https://wpmudev.com/
* Description: You need setup the {quiz_result_description} tag on the email body.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-2337
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-hustle-custom-close.php
Created June 4, 2022 15:10 — forked from wpmudev-sls/wpmudev-hustle-custom-close.php
[Hustle] Close popup by custom link content
<?php
/**
* Plugin Name: [Hustle] Close popup by custom link content
* Plugin URI: https://premium.wpmudev.org/
* Description: To make it work you need to add the following class on the link: hustle-custom-close
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: SLS-1666 and SLS-959
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Limit Post Title
* Plugin URI: https://wpmudev.com/
* Description: Limit the post title to 60 characters and allow just numbers and latters.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-3331
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Limit Submissions by Birthdate
* Plugin URI: https://premium.wpmudev.org/
* Description: If the user does not have the minimum age necessary, the submission is not finished
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: SLS-1644
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-smartcrawl-editor-access.php
Created June 4, 2022 15:08 — forked from wpmudev-sls/wpmudev-smartcrawl-editor-access.php
[SmartCrawl] Grants Editor Role access to Social Admin page
<?php
/**
* Plugin Name: [SmartCrawl] Grants Editor Role access to Social Admin page
* Plugin URI: https://premium.wpmudev.org/
* Description: Changes the attribute "capability" of the instance from "Smartcrawl Social Settings" class to "edit_others_posts" (that is what makes the social menu visible for editors) and make the social admin page also work with the capabilitie "edit_others_posts" that is what makes possible the editors save the options.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: 0/11289012348292/1167803562365536
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Defender] Load Roles From All Sub Sites
* Plugin URI: https://premium.wpmudev.org/
* Description: If the current url is from "advanced tools" configuration page and the site is multisite, this plugin load all roles from the multisite network. In this way, we make it possible to configure 2-factor authentication for any role present on any of the sites of the entire network.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: 0/11289012348292/1168965543535336
* License: GPLv2 or later
*