Mlp_Term_Translation::get_admin_translation PHP Méthode

get_admin_translation() private méthode

Get term in backend
private get_admin_translation ( array $term, string $taxonomy ) : array | boolean
$term array
$taxonomy string
Résultat array | boolean
    private function get_admin_translation(array $term, $taxonomy)
    {
        if (!current_user_can('edit_terms', $taxonomy)) {
            return FALSE;
        }
        return ['remote_url' => $this->type_factory->create_url([get_edit_term_link((int) $term['term_id'], $taxonomy)]), 'remote_title' => $term['name']];
    }