function tst_post_updated($post_id) { remove_action('save_post', 'tst_post_updated'); $post = get_post($post_id); if ($post) { tst_actualize_member_role($post->post_author); } }
function tst_actualize_current_member_role() { tst_actualize_member_role(get_current_user_id()); }