personal_options hook on Wordpress multisite
I have a working script that hooks to user profile. This is my hook:
add_action('personal_options', array(&$this,'show_bounce_email_warning_to_user'),10,1);
As you can see it will show bounce email warnings at the profile page. This works well when the user access his user profile by this URL for example:
http://my-multisite.com/wp-admin/profile.php
However most users do not login using the root admin page. But to their specific websites (which is a subdomain of the multisite) for example:
http://userwebsite.my-multisite.com/wp-admin/
But the email warning at the personal options page (at user profile) does not appear in any of the user websites under the multisite:
http://userwebsite.my-multisite.com/wp-admin/profile.php
I need the warnings to appear in all user profiles that the user is logged-in. Not just when accessing the root WP admin URL.
What is the hook to use? Any tips is highly appreciated thanks!
Cheers.
I have a working script that hooks to user profile. This is my hook:
add_action('personal_options', array(&$this,'show_bounce_email_warning_to_user'),10,1);
As you can see it will show bounce email warnings at the profile page. This works well when the user access his user profile by this URL for example:
http://my-multisite.com/wp-admin/profile.php
However most users do not login using the root admin page. But to their specific websites (which is a subdomain of the multisite) for example:
http://userwebsite.my-multisite.com/wp-admin/
But the email warning at the personal options page (at user profile) does not appear in any of the user websites under the multisite:
http://userwebsite.my-multisite.com/wp-admin/profile.php
I need the warnings to appear in all user profiles that the user is logged-in. Not just when accessing the root WP admin URL.
What is the hook to use? Any tips is highly appreciated thanks!
Cheers.
No comments:
Post a Comment