Ben Huson
Forum Replies Created
-
You can add content the to the bottom of the form using the password_protected_after_login_form action hook. e.g.
function my_password_protected_after_login_form() { echo '<p>Your content here.</p>'; } add_action( 'password_protected_after_login_form', 'my_password_protected_after_login_form' );You could put this code in your theme’s functions.php file.
Do you have a link where I can preview this issue?
Do you have an example link where I can preview this issue?
Hi, I added an issue to work on this functionality.
Please view the issue on GitHub – I have added a version of the plugin for you to download and test that adds this functionality.
Please let me know (via the GitHub issue) if that works for you or if you find any problems.
Thanks
Ben
The plugin will also look for a stylesheet in your theme folder called “password-protected-login.css”. You can create this stylesheet (if it does’t exist) and use that to style your login page.
See here if you want to add a stylesheet in another location.
Released in version 2.0.2
Thank you from bringing this to my attention.
I will implement fixes for the above and release an update.
Many thanksBen
This plugin is just designed to protect the whole site.
It you’re a developer you can using the ‘password_protected_is_active’ filter to disable the plugin on certain pages, but there is no functionality to do this just via the admin.
https://github.com/benhuson/password-protected/wiki/DocumentationBen
Forum: Plugins
In reply to: [List Pages Shortcode] Highlight Current Page in List-Pages widgetTry:
ul.list-pages li.current_page_item a { text-decoration:none; color:#fff; background:#000; }Also supports classes ‘current_page_ancestor’ and ‘current_page_parent’
Forum: Plugins
In reply to: [List Pages Shortcode] Is List Pages Shortcode compatible with WordPress 4.3?It won’t break in it’s current state.
The changes are to WordPress core to prepare for PHP7.
Forum: Plugins
In reply to: [Expire Users] Expire Users not working with WooCommerce registration formPlease note, the following is completely untested and I would suggest trying it on test site first. I think this might work…
<?php function expire_user_woocommerce_created_customer( $customer_id, $new_customer_data, $password_generated ) { global $expire_users; if ( ! class_exists( 'Expire_User' ) ) { return; } $expire_settings = $expire_users->admin->settings->get_default_expire_settings(); $expire_data = array( 'expire_user_date_type' => $expire_settings['expire_user_date_type'], 'expire_user_date_in_num' => $expire_settings['expire_user_date_in_num'], 'expire_user_date_in_block' => $expire_settings['expire_user_date_in_block'], 'expire_user_date_on_timestamp' => $expire_settings['expire_timestamp'], 'expire_user_role' => $expire_settings['expire_user_role'], 'expire_user_reset_password' => $expire_settings['expire_user_reset_password'], 'expire_user_email' => $expire_settings['expire_user_email'], 'expire_user_email_admin' => $expire_settings['expire_user_email_admin'], 'expire_user_remove_expiry' => $expire_settings['expire_user_remove_expiry'] ); $user = new Expire_User( $customer_id ); $user->set_expire_data( $expire_data ); $user->save_user(); } add_action( 'woocommerce_created_customer', 'expire_user_woocommerce_created_customer', 10, 3 ); ?>If you’re able to confirm that this works please let me know.
The code above applies only if you’re using the Password Protected plugin and can be used to check if a user is logged in via the Password Protected password (not if a user is logged in with a WordPress username and password).
Forum: Fixing WordPress
In reply to: how to add more than 1 google maps on 1 pageThe WP Geo plugin only handles setting a single location for each post/page.
If you want to display multiple maps on a single page, you would currently have to create a separate page for each location and then including them as separate maps on a single page which should be possible using the
[shortcode_wpgeo_mashup post_ids="2" /]where “post_ids” is the ID of the page you want to display the location of.Not the most elegant solution and there are probably other map plugins out there that may do this better.
Forum: Plugins
In reply to: [WP Subtitle] Subtitle disappears from edit post list after quick editI have added a support ticket for that here.