Facebook and WordPress
You can use the Facebook Comments for WordPress plugin or the Disqus Comment System, which allows comment login using Google, Twitter, Facebook, or OpenID accounts, and is totally import/export compatible with WP comments.
You can use the Facebook Comments for WordPress plugin or the Disqus Comment System, which allows comment login using Google, Twitter, Facebook, or OpenID accounts, and is totally import/export compatible with WP comments.
On your dashboard, check Settings -> General -> Standard role for new users
Is it a best practice? Yes. What will be the behavior of plugins? They should work fine. What are the pros and cons of my decision? Pros: More secure. Cons: none. http://codex.wordpress.org/Administration_Over_SSL
Actually, all I need is to change one specific button in the menu, so it is different when the user is logged in – in that case that menu button will be a “Member profile” button instead of a “Log in” button Yes, you can use only one menu, assuming its slug is ‘my_menu’ do … Read more
You could just programmatically add a new user to the site. This is a snippet from a utility I use to gain access to WordPress sites when I don’t have the login info. Just upload it to a file in your wordpress root and navigate to it: require_once(‘wp-blog-header.php’); require_once(‘wp-includes/registration.php’); $user_id = wp_create_user( ‘newusername’, ‘newpassword’ ); … Read more
I’m not aware of any other way but to use both add_action lines, for a single function. Example: function my_enqueue_sripts_function_name(){ // your enqueue logic here } add_action(‘wp_enqueue_scripts’, ‘my_enqueue_sripts_function_name’ ); add_action(‘admin_enqueue_scripts’, ‘my_enqueue_sripts_function_name’ ); There’s no rule that forbids you from adding the same function on multiple hooks. Furthermore, if you need to know which action called … Read more
Use shortcode: [theme-my-login show_title=0] or function: <?php theme_my_login( array( ‘default_action’ => ‘login’, ‘show_title’ => ‘0’) ); ?>
If you have a custom login page already, you may not want to introduce a whole new plugin. You can change ‘from’ name and email with these simple functions in your theme or plugin. To change the name add_filter( ‘wp_mail_from_name’, ‘custom_wpse_mail_from_name’ ); function custom_wpse_mail_from_name( $original_email_from ) { return ‘Yours Truly’; } To change the email … Read more
There are two possible solutions for your problem. You can download “Login redirect” plugin from here: http://wordpress.org/extend/plugins/peters-login-redirect/ You should use a login_redirect filter: function my_login_redirect($redirect_to, $request) { $redirect_url = get_bloginfo( ‘url’ ) . ‘/blog/’; return $redirect_url; } add_filter(“login_redirect”, “my_login_redirect”, 10, 3); More information about login_redirect filter: http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
You can use this on any WordPress page / template. <?php if ( is_user_logged_in() ) : ?> //Code for only logged in users <?php endif; ?> Checkout the docs for more info: https://developer.wordpress.org/reference/functions/is_user_logged_in/