Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #2573
      slim
      Member

      Hi, I want to write my own sanitization rules function to rewrite fields value before it save to database. I follow the documentation , but I don’t known where to put these code in. Please help me, thanks!

    • #2574
      Steve
      Keymaster

      @slimThis is the code you need. It goes in a plugin file, or your theme’s functions.php file.

    • #2576
      slim
      Member

      I see this code. And I want to put it into plugin file, but I don’t know which file, should I put it into /includes/class-piklist-validate.php ?

    • #2577
      Steve
      Keymaster

      @slim– Build your own plugin. It can be just one file. Here’s a good tutorial> Just include the comment block at the top (mentioned in the tutorial), and then put your Piklist code in. Upload and activate!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.