• Resolved jamiet757

    (@jamiet757)


    I was messing around in my theme and changed the default values for the comments fields that it had set forth. Now when someone posts a comment, if they don’t enter a website, wordpress automatically puts http:// your website.

    I want to put an if statement somewhere to determine if the default values are present and if they are, clear them out before adding to the database, but I can’t for the life of me see where the aforementioned task is actually done.

    Can someone point me in the right direction? I know how to code the PHP to make it check that the field wasn’t just the default value, but I don’t know where to look to start.

Viewing 1 replies (of 1 total)
  • Chip Bennett

    (@chipbennett)

    Assuming your Theme is using the comment_form() function, where did you define the fields array that is part of the $new_defaults array that you passed to comment_form()?

Viewing 1 replies (of 1 total)

The topic ‘Comments -> Database’ is closed to new replies.