Change wording of Labels
-
I am trying to write a filter for the labels in the following function but am not seeing them change.
get_has_accepted_terms_labels()
This is what I have tried so far, but nothing changes on the Users.php page in the ‘Terms accepted’ column. I do have an active license key. can you advise? I know I’m overlooking something obvious.
add_filter('get_has_accepted_terms_labels', 'new_get_has_accepted_terms_labels'); function new_get_has_accepted_terms_labels($user_id, $user_accepted_terms, $user_state) { $label = ""; switch ($this->user_state) { case 2: $label = "✓ " . __('LA', 'terms-popup-on-user-login'); break; case 1: $label = " " . __('A', 'terms-popup-on-user-login'); break; case -1: $label = " " . __('LD', 'terms-popup-on-user-login'); break; case -2: $label = " " . __('D', 'terms-popup-on-user-login'); break; case 0: default: $label = "-"; break; } return $label; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change wording of Labels’ is closed to new replies.