cipf v 0.4.1 wip trying to filter registration email

This commit is contained in:
asus
2024-03-27 09:38:19 +01:00
parent 0136be4316
commit 0808c83589
4 changed files with 28 additions and 6 deletions

View File

@@ -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) {