• Resolved nojuju

    (@nojuju)


    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 = "&#x2713 " . __('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)
  • Plugin Author Lehel Mátyus

    (@lehelm)

    Hi nojuju,

    Currently the plugin does not support overriding this label in the users listing page.

    Please go to Settings > Terms Popup On User Login > Support. Reach out to that email, provide your support token in the email and I can assist you further on how to achieve this.

    Bests,

    Lehel

Viewing 1 replies (of 1 total)
  • The topic ‘Change wording of Labels’ is closed to new replies.