wip i broke everyhting :p

This commit is contained in:
asus
2024-03-14 13:10:05 +01:00
parent 76f2e8ba00
commit e14acfb739
7 changed files with 18 additions and 121 deletions

View File

@@ -115,23 +115,16 @@ function show_prof_paiement_messages_CIPF($user_id) {
function check_prof_page_CIPF() {
PLGNTLS_class::debug_infos();
$slug = get_post_field( 'post_name', get_post() );
error_log("slug");
error_log($slug);
// is an author page
if (!is_author())
return;
PLGNTLS_class::debug_infos();
// the way to find the id of the author of an author_page
$author_id = get_queried_object_id();
handle_prof_is_activ_CIPF($author_id);
PLGNTLS_class::debug_infos();
show_prof_paiement_messages_CIPF($author_id);
PLGNTLS_class::debug_infos();
}
add_action('template_redirect', 'check_prof_page_CIPF', 11);