greetings collective mind,
I’m writing a simple plugin to filter an html comment into a form, and would like it to have the form action be the page it’s on. I thought I would be able to use get_permalinks for the action uri, but I’m getting an error.
I’m testing this on a page (not a post). It’s fairly basic, with an add_filter. Outside of the add filter, I build the form, which uses get_permalink(), or I process the received post data.
The error returned is “Fatal error: Call to undefined function: get_userdata() in /var/www/html/info/wp-includes/template-functions-links.php on line 63”
Am I missing something basic here? Is there a way to use it in a plugin?