Disable delayed customer recalculations

/** * Bypasses the CRON event that is scheduled 5 minutes after a purchase that recalculates a customers stats. * * Note: This may impact the performance of the checkout process. */ add_filter( ‘edd_recalculate_bypass_cron’, ‘__return_true’ );Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

CPF Cadastro único – JetFormBuilder

use Jet_Form_Builder\Exceptions\Action_Exception; add_action( ‘jet-form-builder/custom-action/uniquecpf’, function ( $request, $handler ) { $usuario_atual_id = get_current_user_id(); // Verificar se o usuário atual está logado e tem o mesmo CPF if ($usuario_atual_id && get_user_meta($usuario_atual_id, ‘jet_user_cpf’, true) === $request[‘cpf’]) { // Pula a validação se…Continue reading

Admin Panel Settings

/** * Plugin Name: Admin Panel Settings * Description: This plugin contains your admin panel settings. * Author: NoBull. * Version: 1.0 */ // Remove Powered By WP Bakery Builder Snippet add_action(‘wp_head’, ‘removebakery’, 1); function removebakery() { if ( class_exists(…Continue reading