Location: everywhere
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
Home Page Meta Refresh
/** * Homepage Freshness Signals — Rank Math (Universal) * * Drop-in snippet for any WordPress + Rank Math news site. * No site-specific prefixes or configuration needed. * * – Overrides the homepage OG image with the latest post’s…Continue reading
Profile Grid Panel (PHP)
if ( ! defined( ‘ABSPATH’ ) ) exit; /* ——————————————————— * EDIT THESE IF YOUR PG PAGE SLUGS DIFFER * ——————————————————— */ function lts_pg_login_url() { return site_url( ‘/login/’ ); // Change if your ProfileGrid login page slug is different }…Continue reading
Hotel Surprise Grupo
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
cookies
Cookie SettingsContinue reading
ByUs Global – Gravity forms entries access to editors
add_action( ‘init’, function() { $role = get_role( ‘editor’ ); if ( ! $role ) return; $caps = [ ‘gravityforms_view_entries’, ‘gravityforms_edit_entries’, ‘gravityforms_delete_entries’, ‘gravityforms_export_entries’, ‘gravityforms_view_entry_notes’, ‘gravityforms_edit_entry_notes’, ]; foreach ( $caps as $cap ) { $role->add_cap( $cap ); } } );Continue reading