I have four custom post types and I would like to edit the “leave a comment” text to customize them to each however the code I have is not working. I also tried the suggested code from the "Change the default “Leave a Comment text” question from April 2016 but also no luck. Any help would be greatly appreciated
function stockabl_directory_comment_form( $title , $post ){
if( $post->post_type == ‘retailer’ ){
$my_title['title_reply'] = __( 'Worked with this retailer before? Share your experience with the community.' );
I had already tried that as I mentioned in my original post but your suggestion led me to look closer at my theme (page builder framework) and I found that they have a different filter!