I am not able to login to my wp-admin panel
Add this to wp-config.php before line /* That’s all, stop editing! Happy blogging. */ and check if it works. define( ‘WP_HOME’, ‘http://localhost/ecom’ ); define( ‘WP_SITEURL’, ‘http://localhost/ecom’ );
Add this to wp-config.php before line /* That’s all, stop editing! Happy blogging. */ and check if it works. define( ‘WP_HOME’, ‘http://localhost/ecom’ ); define( ‘WP_SITEURL’, ‘http://localhost/ecom’ );
If you want to check if a post has a password, and that the password has been entered, check both post_password_required() and $post->post_password: $post = get_queried_object(); if ( ! post_password_required( $post ) && ! empty( $post->post_password ) ) { // Post has a password, but has been entered. }
This answer assumes you are talking about the regular login page, /wp-login.php, and that each user exists as a user in the WordPress database. After reading your question again I’m not so sure that is what you want to do. This is a first attempt, but it is not complete because it asks for your … Read more
In WordPress 3.6 they added the “heartbeat” to the admin area and one of the features is this authentication check. You can disable this admin auth popup by adding the following to your functions.php file… // Remove admin login popup remove_action(‘admin_enqueue_scripts’, ‘wp_auth_check_load’);
First, you can check installed wordpress (wp-content). Your login screen is here: http://example.com/folder/wp-login.php If you have database access. You can update password (MD5) in database. Or if you have not access. You can try code in functions.php only one time. <?php $user_id = 1; $password = ‘HelloWorld’; wp_set_password( $password, $user_id ); ?>
This code adapted from: Registration Redirect add_filter( ‘registration_redirect’, ‘ckc_registration_redirect’ ); function ckc_registration_redirect() { return home_url(); } This code adapted from: Login Redirect add_filter( ‘login_redirect’, ‘ckc_login_redirect’ ); function ckc_login_redirect() { // Change this to the url to Updates page. return home_url( ‘/Updates’ ); } Add the code to the functions.php theme (or child theme) file.
I have solved this strange problem by myself. Share my experience to all. Find these 2 lines in /etc/php.ini upload_max_filesize 16M post_max_size 16M Add common before, so that change as: ;upload_max_filesize 16M ;post_max_size 16M And final, do not forget restart apache: service httpd restart via SSH. Then I could login into my site under linux … Read more
I think you’re on the right track with a filter. Have you tried login_body_class as the filter? function add_blog_id_to_login_page( $classes ) { $blog_id = get_current_blog_id(); $classes[] = “blog-{$blog_id}”; return $classes; } add_filter( ‘login_body_class’, ‘add_blog_id_to_login_page’ );
Change wp-admin login is a light plugin that allows you easily and safely to change wp-admin to anything you want. It does not rename or change files in core. It simply intercepts page requests and works on any WordPress website. After you activate this plugin the wp-admin directory and wp-login.php page will become unavailable, so … Read more
You can get the current blog id (which would be the site in a network, your subsite) with get_current_blog_id() and you can get details of a particular site with get_blog_details() from codex: get_blog_details(), passed an id of 1, may return the following object: [blog_id] => 1 [site_id] => 1 [domain] => foo-multi-site.com [path] => /site-path/ … Read more