function redirect_to_bestellen_after_login($redirect, $user) { $redirect_page_id = get_page_by_path(‘bestellen’); //slug van de doelpagina if ($redirect_page_id) { $redirect = get_permalink($redirect_page_id); } return $redirect; } add_filter(‘woocommerce_login_redirect’, ‘redirect_to_bestellen_after_login’, 10, 2);Continue reading
// Leidt niet-ingelogde gebruikers om van de /bestellen pagina naar de /my-account pagina. // Als de gebruiker is ingelogd, kunnen ze de /bestellen pagina normaal bekijken. function redirect_non_logged_users() { if (is_page(‘bestellen’) && !is_user_logged_in()) { //doelpagina ‘bestellen’ wp_redirect(site_url(‘/mijn-account’)); //redirect bestemming ‘/mijn-account’…Continue reading
class EDD_Force_Login_And_Email { function __construct() { add_action( ‘plugins_loaded’, array( $this, ‘load’ ) ); } public function load() { add_filter( ‘edd_file_download_has_access’, array( $this, ‘check_access’ ), 9999, 3 ); } public function check_access( $has_access, $payment, $args ) { if( ! is_user_logged_in() )…Continue reading
function g9_custom_login_css() { ?>Continue reading