/** * Calculates a future date in a WPForms Date / Time field based on a Number field. * Form ID: 775 * Number Field ID: 1 * Date Field ID: 4 */ function wpf_custom_date_calculator_script() { ?>Continue reading
/** * Enable JSON and SVG uploads for administrator users only. */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // Only allow for administrators if ( ! current_user_can( ‘administrator’ ) ) { return $upload_mimes; } // Add SVG support $upload_mimes[‘svg’]…Continue reading
function forex_custom_login_message() { return “ Welcome to Expert Forex Trade – Trade with Confidence! “; } add_filter(‘login_message’, ‘forex_custom_login_message’);Continue reading
/** * Plugin Name: Download Media ZIP * Description: Permet de télécharger une sélection de médias de la médiathèque en fichier ZIP * Version: 1.2 * Author: Votre nom * Text Domain: download-media-zip */ // Sécurité : empêcher l’accès direct…Continue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
function site_title_shortcode() { return get_bloginfo(‘name’); } add_shortcode(‘sitetitle’, ‘site_title_shortcode’);Continue reading
/** * Exclude my_news from using CDN, where my_news is the slug of custom post type. */ add_filter( ‘envira_cdn_should_process_content’, function( $should_process, $content ) { // Check if we’re on a single post/page and it’s my_news post type if ( is_singular(…Continue reading
/** * 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