Private WordPress blog, requires user registration approval, and allowing users to login with OpenID

Indeed, there is a way. First, you’re going to want to install the Member Access plugin & the official OpenID plugin. Both of these are free After configuring all of your pages and setting up the OpenID plugin, edit the robots.txt file in the WordPress installation directory. Add the following line: User-Agent: * Disallow: / … Read more

Username from e-mail

As far as i know there is no hook or filter to provide a custom User name for default registration process, however if you really want to modify it, you can alter the $_POST data. here is the sample code: add_action(‘wp_loaded’, ‘wpse_138736_filter_username’); function wpse_138736_filter_username(){ //your code to extract username from email $_POST[‘user_login’] = ‘test’; } … Read more

Populate Website URL at registration time

A few things come to mind… 1) Do users have to activate their accounts? If they do, it’s quite possible that users who haven’t activated yet are the users who don’t return an author URL 2) If this is occurring for all users, that shouldn’t matter since you already know what the expected URL is … Read more

Register a widget area when a theme option has been saved?

In functions.php write this code function my_optionally_widgets() { $option = get_options(‘wantwidget’); if($option == ‘yes’) { register_widget(‘mywidget’); /* add other widgets for registration here */ } } add_action(‘widgets_init’, ‘my_optionally_widgets’); function my_optionally_sidebars() { $option = get_options(‘wantsidebar’); if($option == ‘yes’) { register_sidebar($args); /* add other sidebars for registration here */ } } add_action(‘init’, ‘my_optionally_sidebars’); Remember that Widget Areas … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)