New answers tagged comment-form
2
I know this is quite an old post and maybe this could help someone.
You can replace the class of an element using add_filter();
Here's an example:
// filter to replace class on reply link
// class name function name
add_filter('comment_reply_link', 'replace_reply_link_class');
function replace_reply_link_class($class){
$class ...
1
This is how I've handled passing messages back to the user before: within your current function, set a transient with your message:
set_transient( 'admin_notice', 'Please put down your weapon. You have 20 seconds to comply.' );
Then add a new hooked function:
function admin_notices() {
$notice = get_transient( 'admin_notice' );
if ( $notice ) {
...
Top 50 recent answers are included
