Dec 2, 2019 | Training & Learning, Website Work Items |
function loginRedirect( $redirect_to, $request, $user ) {
if ( is_a( $user, ‘WP_User’ ) && $user->has_cap( ‘edit_posts’ ) === false ) {
return get_bloginfo( ‘siteurl’ );
}
return wp_safe_redirect( wp_get_referer() );}
add_filter( ‘login_redirect’, ‘loginRedirect’, 10, 3 );
In this case the link in the page that point to “wp-login.php” redirect directly to the current page and the user haven’t the possibility to log-in.
Source: Quirk redirect after login | WordPress.org
Dec 2, 2019 | Interesting Plugins, Plugins I'm using |
Use the “Two-Factor Options” section under “Users” → “Your Profile” to enable and configure one or multiple two-factor authentication providers for your account:
Email codes
Time Based One-Time Passwords (TOTP)
FIDO Universal 2nd Factor (U2F)
Backup Codes
Dummy Method (only for testing purposes)
Source: Two-Factor – WordPress plugin | WordPress.org
Dec 2, 2019 | Training & Learning |
Shortcodes are an easy way to add dynamic content into your WordPress posts, pages, and sidebars.
Many WordPress plugins and themes use shortcodes to add specialized content like contact forms, image galleries, sliders, and more.
In this article, we will show you how to easily add a shortcode in WordPress. We will also show you how to create your own custom shortcodes in WordPress.
Source: How to Add a Shortcode in WordPress? (Ultimate Guide)
Dec 2, 2019 | Plugins I'm using |
Description
Passwordless Login is a modern way of loggin into your WordPress site without the use of a password.
Join the discussion here: http://www.cozmoslabs.com/31550-wordpress-passwordless-login/
This is how it works:
Instead of asking users for a password when they try to log in to your website, we simply ask them for their username or email
The plugin creates a temporary authorization token and saves it in a WordPress transient that expires after 10 minutes
Then we send the user an email with a link and the token
The user clicks the link and sends the authorization code to your server
The plugin then checks if the code is valid and creates the log in WordPress cookie, successfully authenticating the user.
Source: Passwordless Login – WordPress plugin | WordPress.org