[Solved] changing default comment form arguments [duplicate]

You’re logic reads like this: “If the post type is not ‘myCPT’ or if the user is logged in, then use the altered comment_form” So, all post types except myCPT use the altered form and any user that is logged in will see the altered form.

That doesn’t sound like your description of the problem:

I want to change the default comment form title_reply, label_submit
… just on my CPT without affecting the default comment form…

Nor does it sound like the description of what you think the code should do in the comment:

Don’t output the comment form if CPT and user isn’t logged in

There are at least two descriptions of what should be happening and the code does neither– not even close.

Assuming the simplest case that you want to change the defaults for the comment form for your CPT, then…

if ( 'myCPT' == get_post_type()) {
  if (is_user_logged_in()) {
     comment_form(array('title_reply'=>'Got Something To Say:'));
} else {


solved changing default comment form arguments [duplicate]