Password reset e-mail niet versturen

Password reset e-mail WordPress niet versturen Voeg deze code toe aan de functions.php van je actieve thema of maak gebruik van bijv. Code Snippets plugin. // disable email after password change add_filter( 'send_password_change_email', '__return_false' );  

Lees meer

Password strength meter uitschakelen

Voeg deze code toe aan function.php van je thema of Code Snippets. /** * Remove password strength check. */ function lamper_remove_password_strength() { wp_dequeue_script( 'wc-password-strength-meter' ); } add_action( 'wp_print_scripts', 'lamper_remove_password_strength', 10 );  

Lees meer

ACF in emails and orders tonen

Alle advanced custom fields tonen in orders en emails. Bekijk op Stackoverflow

Lees meer

'Meer lezen' op een tekstblok

Meer lezen met JavaScript op een tekstblok in WordPress 1. Voeg dit toe in de functions: add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); wp_enqueue_script( 'readmore-script', get_stylesheet_directory_uri() . '/js/readmore.min.js', array(), '1.0.0', true ); wp_enqueue_script( 'costum-script', get_stylesheet_directory_uri() . '/js/costum.js', array(), '1.0.0', true );   2. Maak daarna een 'js' mapje aan in de child map....

Lees meer

Verberg labels Gravity Forms

Labels verbergen in Gravity Forms Je kan labels verbergen met een code toe te voegen aan de functions.php of door deze plugin code snippetsĀ te installeren. met deze plugin kan je gemakkelijk een php code op je website plaatsen en makkelijk weghalen.

Lees meer

Redirect na uitloggen WordPress

Voeg deze code toe aan functions.php van je thema of Code Snippets. O.a. te gebruiken met BuddyPress // add redirect on user logout always to home page function hh_auto_redirect_after_logout(){ wp_redirect( home_url() ); exit(); } add_action('wp_logout','hh_auto_redirect_after_logout');  

Lees meer

Allow all font files WordPress

Add code to functions.php // Allow all font files WordPress add_filter( 'upload_mimes', function( $mimes ) { $mimes = 'application/x-font-woff'; $mimes = 'application/x-font-woff2'; $mimes = 'application/x-font-ttf'; $mimes = 'image/svg+xml'; $mimes = 'application/vnd.ms-fontobject'; return $mimes; } ); https://transfonter.org/

Lees meer

Font Awesome laden in WordPress via functions.php

Font Awesome laden via functions.php Voeg deze code toe aan functions.php van je thema of Code Snippets. /** * Enqueue Font Awesome 5 Free * @author Proxeuse */ add_action( 'wp_enqueue_scripts', 'enqueue_fontawesome' ); function enqueue_fontawesome() { wp_enqueue_style('font-awesome-free', get_stylesheet_directory_uri().'/fonts/font-awesome/css/all.min.css', array(), '5.13.1'); }  

Lees meer