How to get a link in the entry field?
-
I like how this plugin allows me to have hidden fields and populate it with user data.
I have a field that I populate with user Admin link like this:add_filter( 'caldera_forms_render_get_field_slug-svet_link', function ( $field ) { $current_user = wp_get_current_user(); $field['config']['default'] = '<a href="/wp-admin/user-edit.php?user_id=' . $current_user->ID . '">Profil</a>'; return $field; } );
But when I look at the entry, I want to be able to click the actual link, but instead I get text like this: Profil
Is there a filter I can use to achieve this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to get a link in the entry field?’ is closed to new replies.