Question
I would like to delete a specific post when the user is deleted in admin/users.php. I did this code : add_action('delete_user', array(__CLASS__, "delete_user_profile"), 10 ); //I´m sure the code passed by here. public static function delete_user_profile( $user_id ){ var_dump( $user_id ...
0
, 4 days 0 Answers 16 views

Question
Using Hook, is there a way to remove the Header and Footer from the specific page that is trying to access by users, if the current user is not logged on? function footer_header_remove() { if(!is_user_logged_in() && is_page('the-page')){ ...
0
4 days 0 Answers 11 views