Type: php
Untitled Snippet
FACEBOOK PIXELS PRO
Add Custom Campaign And Donation Field (copy) (copy)
/** * In this example, a new email field is added which can be used both in * campaign emails and donation emails. The field gets a value for a specific * campaign, which in the case of a donation-specific…Continue reading
Add Custom Campaign And Donation Field (copy) (copy)
/** * In this example, a new email field is added which can be used both in * campaign emails and donation emails. The field gets a value for a specific * campaign, which in the case of a donation-specific…Continue reading
Add Custom Campaign And Donation Field (copy)
/** * In this example, a new email field is added which can be used both in * campaign emails and donation emails. The field gets a value for a specific * campaign, which in the case of a donation-specific…Continue reading
Disable All Updates (copy)
add_filter( ‘site_transient_update_plugins’, ‘__return_empty_array’ ); add_filter( ‘transient_update_plugins’, ‘__return_empty_array’ ); add_filter( ‘site_transient_update_themes’, ‘__return_empty_array’ ); add_filter( ‘transient_update_themes’, ‘__return_empty_array’ ); // Disable core wp updates. add_filter( ‘pre_site_transient_update_core’, function ( $object = null ) { global $wp_version; // Return an empty object to prevent extra…Continue reading
Disable All UpdraftPlus Email Notifications (copy)
/** * Comprehensive UpdraftPlus Email Notification Disabler * Add this code to your theme’s functions.php or WPCode * By: Empathy First Media */ // Master switches and initialization prevention add_filter(‘updraftplus_disable_all_mail_init’, ‘__return_true’); // Master switch to disable email initialization add_filter(‘updraftplus_email’, ‘__return_false’);…Continue reading
Bedrijfsgegevens
/** * Plugin Name: Pixelsz – Bedrijfsgegevens * Description: Voeg bedrijfsgegevens in via het WordPress menu en toon ze op elke pagina met een shortcode. * Version: 1.1.0 * Author: Pixelsz Webdesign */ if ( ! defined( ‘ABSPATH’ ) )…Continue reading
Style RD Clients Custom ACF Options Page
if (!function_exists(‘rd_client_prefix_css_for_wrapper’)) { function rd_client_prefix_css_for_wrapper(string $css, string $prefix): string { $out = ”; preg_match_all(‘/([^{}]+)\{([^{}]*)\}/’, $css, $matches, PREG_SET_ORDER); foreach ($matches as $match) { $selector_block = trim($match[1]); $declarations = $match[2]; if ($selector_block === ”) { continue; } $selectors = array_map(‘trim’, explode(‘,’, $selector_block));…Continue reading