Hello!
Below snippets works when I add in the functions.php of any WordPress theme.
However, that way doesn’t meet my future requirements.
So, when I add same snippet via a boilerplate plugin it doesn’t work. It’s critical and I need to make it work. Please help.
/*
* Filter purpose: Changing the comment action URL
* https://developer.wordpress.org/reference/functions/comment_form/
*/
add_filter( 'comment_form_defaults', 'break_comment_action_url');
function break_comment_action_url( $defaults ) {
$defaults['action'] = '';
return $defaults;
}
Thanks & Regards,
Gulshan