Skip to content

Instantly share code, notes, and snippets.

View alfredo-wpmudev's full-sized avatar
🏠
Working from home

Alfredo Galano Loyola alfredo-wpmudev

🏠
Working from home
View GitHub Profile
@wpmudev-sls
wpmudev-sls / forminator-fix-asian-language-character.php
Last active January 3, 2024 19:06
[Forminator Pro] - Fix weird characters on Forminator PDF when language is asian
<?php
/**
* Plugin Name: [Forminator Pro] Fix weird characters on Forminator PDF when language is asian
* Description: Fixes weird characters on Forminator PDF when language is asian
* Author: Prashant @ WPMUDEV
* Task: SLS-5220
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / wpmudev-remove-googlesheeet-headers.php
Last active July 19, 2023 22:04
Removes header row values from the google sheet
<?php
/**
* Plugin Name: [Forminator] - Remove field IDs from header row values
* Plugin URI: https://premium.wpmudev.org/
* Description: Removes field IDs from header row values of googlesheet
* Task: SLS-4106
* Author: Prashant Singh @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / hummingbird-minify-oom-fix.php
Last active July 16, 2023 23:31
[Hummingbird Pro] Fix OOM error when a huge amount of wphb_minify_group posts are present
<?php
/**
* Plugin Name: [Hummingbird Pro] Fix OOM error when a huge amount of wphb_minify_group posts are present
* Description: Limits the query that retrieves the minify groups to 10 to prevent an excessive resource usage on the server
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-4065, SLS-4071
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
<?php
add_action( 'woocommerce_add_to_cart', function ( $cart_item_key, $product_id )
{
//$total = WC()->cart->cart_contents_total;
$product_id_trigger = 28;
$hustle_module = 'PopUp'; // SlideIn, PopUp
$module_id = 188;
<?php
/**
* Plugin Name: Forminator smsportal integration ( Custom )
* Description: This is a really simple example of integration, full doc https://docs.smsportal.com/recipes/send-smses-using-php
* Version: 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
@wpmudev-sls
wpmudev-sls / forminator-custom-uploads.php
Last active July 12, 2023 23:06
[Forminator Pro] - Change Upload Path. This snippet should be changing the Forminator upload path to wp-content/YOUR_PATH. By default it's wp-content/forminator
<?php
/**
* Plugin Name: [Forminator Pro] - Change Upload Path
* Plugin URI: https://premium.wpmudev.org/
* Description: This snippet should be changing the Forminator upload path to wp-content/YOUR_PATH. By default it's wp-content/forminator
* Task: 0/11289012348292/1168134495134017
* Version: 1.0.0
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
@wpmudev-sls
wpmudev-sls / wpmudev-add-shortcode-list-all-sub-sites.php
Last active February 23, 2024 00:16
Add shortcode list all blog sites
<?php
/**
* Plugin Name: Add shortcode list all blog sites
* Description: Add shortcode list all blog sites ([wpmudev_list_all_blogs]) - 1155576029146873
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
return;