cipf v 0.4.1 wip trying to filter registration email
This commit is contained in:
@@ -33,8 +33,11 @@ function partner_page_scripts_CIPF() {
|
||||
if (!current_user_can($role_partner)) {
|
||||
return;
|
||||
}
|
||||
PLGNTLS_class::debug_infos();
|
||||
global $post;
|
||||
if (is_null($post)) {
|
||||
return;
|
||||
}
|
||||
PLGNTLS_class::debug_infos();
|
||||
$current_post_author = (int)($post->post_author);
|
||||
$current_user_id = (int)get_current_user_id();
|
||||
if ($current_user_id !== $current_post_author) {
|
||||
|
||||
Reference in New Issue
Block a user