Geert
Forum Replies Created
-
Mike,
How could I overlook this…
Works!
Thanks a lot for your help.
G.Hello, same issue here: https://blog.ecofun.be/blog/ontdekt-en-gepot-de-biogrond-van-osmo/
Refresh image jumps to top of page.
WP Network install. All SI Captcha tests run OK.
G.Forum: Themes and Templates
In reply to: current_user_can not working with custom rolesHi,
Checking against a custom capability with:
if ( current_user_can( ‘CUSTOM_CAPABILITY’ ) )
does not work here in WP 3.0.1 neither.
add_role seems to write the name of the ROLE to the wp_capabilities fields in wp_usermeta, not the name of the custom CAPABILITY.
If I check against the ROLE:
if ( current_user_can( ‘ROLE’ ) )
it does work, but that’s not what current_user_can is intended to do.Forum: Requests and Feedback
In reply to: Incomplete action hooks @ wp-login.php ?Hello, I checked the plugins. They all require a modification of wp-login.php, to add a 3rd parameter to the hook calls:
Can’t we have the wp-login.php edited to something like:
$message = apply_filters(‘retrieve_password_message’, $message, $key, $user_login);
and
$message = apply_filters(‘password_reset_message’, $message, $new_pass, $user->user_login);It’s backwards OK and will benefit all new coding.
Best,
Geert
Forum: Requests and Feedback
In reply to: Incomplete action hooks @ wp-login.php ?Hello,
Thanks. I’ve been exploring a bunch of plugins previously, yet none seemed to use these hooks. I will check them again asap.
G.
Forum: Requests and Feedback
In reply to: Incomplete action hooks @ wp-login.php ?Hello,
We’re building sites for our clients. We need to personalize the standard e-mails sent by WP. E.g. client-specific messages, multilingual (using qTranslate), client-specific contact details for help, …
So yes using the built-in process, but adapting the e-mail subject and content. I guess that’s what these hooks were designed for.
Geert
Forum: Requests and Feedback
In reply to: Incomplete action hooks @ wp-login.php ?Hello,
I wonder if anyone manages to use these hooks without the proposed fix.
$user_login and $user->user_login are not available (global), so I guess the only way is to add them to the code @ wp-login.php:
$message = apply_filters(‘retrieve_password_message’, $message, $key, $user_login);
and
$message = apply_filters(‘password_reset_message’, $message, $new_pass, $user->user_login);
Geert
Forum: Plugins
In reply to: [Plugin: Splashscreen] Will this interfare with bots?Hi, I posted a question at https://cochinoman.com/2009/02/16/wordpress-plugin-for-splash-screen/ but I’m not sue if that’s maintained. Question is: does this block search engines from indexing a site, i.e. they can’t get through the ‘Agree’ button? Thanks, G.