Support » Plugin: Comment Approved » Can position of checkbox be changed and translated?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nielsvanrenselaar

    (@nielsvanrenselaar)

    Hi Rick,

    Thanks for using the plugin. The plugin uses the “comment_form_default_fields” filter from WordPress itself to add a “notify_me” key value. You could, trough your own functions.php theme file, add a filter and hustle the fields around :).

    Thread Starter Rick Sportel

    (@ricksportel)

    EDIT: Ignore this comment. I see that I used ‘comment_form_defaults’ and that the plugin uses ‘comment_form_default_fields’.

    ==============================================

    Hi Niels, thanks you for your reply.

    I tried this to check if what you say is working:

    add_filter( 'comment_form_defaults', 'customize_comment_form_defaults', 10, 1 );
    function customize_comment_form_defaults( $defaults ) {
    
    	$defaults[ 'notify_me' ] = "Hello";
    
    	return $defaults;
    
    }

    It still shows the checkbox as usual.

    Can you pleae hand me a piece of code that works?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can position of checkbox be changed and translated?’ is closed to new replies.