Adding custom smart tag

By: Gianluca Marzaro | Asked: 10/17/2023
ForumsCategory: Code SnippetsAdding custom smart tag
Gianluca MarzaroGianluca Marzaro asked 9 months ago
I need to register a new smart tag (custom). The smart tag should fetch a custom field related to the user profile that has filled out the form. The form uses the user_id field, so by passing this value as a parameter in a get_user_meta function, I can retrieve the custom field I need. The issue is that I can't find any documentation on the website, neither filters nor action hooks, that would allow me to perform this operation. Is there a hook to register a custom smart tag? So that it passes the form object as an argument, which contains the data from which I can extract the user_id and then construct the output for my custom shortcode?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community