I'm getting a little confused between the options and settings APIs. I want to add three multirow text fields (displayed as a textarea) for my plugin. I just want to allow the user to specify three pieces of data which are accessible to my plugin (I assume under the settings menu but if there is another option I'm open to that).
I would really prefer not have to manage HTML (by creating a form as I've seen in other examples) inside of my plugin. Is there a way to just specify that I want an entry field and then add a CSS class to it that makes the field display as a textarea rather than just a single line? Or, instead of embedding HTML inside my plugin, could I use a template (that I ship with my plugin as a separate file) and interpolate values into it (not sure if that is actually simpler, but I struggle with HTML properly escaped between the PHP
<? open and close
So, I think I have two questions:
- How do I create/register these options for my plugin? (Is options the correct term in this context?)
- How do I use the options inside my plugin. My plugin uses the
add_filterfunction to filter content, and I would like to use the values set for my options inside the function I register.