Hi @thejoshtree,
That’s odd! The edit form link will only show to (1) logged-in users (2) with the manage_options capability. Are you seeing situations where that is not the case?
Regardless, if you’d like to remove the ‘edit form’ link (which we refer to as “action links”) you can use the filter yikes-mailchimp-front-end-form-action-links.
If you know how to add functions to your functions.php file, the following code can be copied and pasted directly in there. This function will remove the action links in all scenarios.
function yikes_mailchimp_remove_action_links( $edit_link_html, $form_variables, $form_name ) {
return '';
}
add_filter( 'yikes-mailchimp-front-end-form-action-links', 'yikes_mailchimp_remove_action_links', 10, 3 );
Let me know if you need help adding the function or if you have any other questions.
Cheers,
Kevin.
Hi Kevin,
Thanks so much, this is perfect.
FWIW, the problem we have is not on the WordPress side, it’s with CloudFlare. Somehow their caching keeps serving pages to non-admin’s with the link showing.
Thanks again for the help,
Josh
Hey Josh,
No problem! I’m glad it worked. I’ll mark the ticket as resolved (feel free to ask more questions here or open a new thread if you need to).
Cheers,
Kevin.