The validation tag has no wiki summary.
4
votes
3answers
2k views
don't publish custom post type post if a meta data field isn't valid
I have a custom post type (CPT) called event. I have a meta box for the type with several fields. I would like to validate some fields before publishing an event. For example, if an event's date is ...
4
votes
3answers
838 views
How should one implement add_settings_error on custom menu pages?
The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn't provide ...
1
vote
3answers
644 views
Require a Custom Taxonomy to be checked
I have a custom taxonomy, "position", with multiple terms for a custom post type, "employee" in the admin. I want to validate the form to require a position to be selected when you save/update a post.
...
1
vote
3answers
483 views
stray <p> elements
I coded a wordpress shortcode for columns that basically inserts html via a shortcode. Problem is that wpautop adds stray p elements that renders the code invalid.
To test put this into your ...
0
votes
3answers
93 views
How does WP decide how to evaluate database integrity
I've upgraded a handful of WPMU sites from 2.9 to WP3. I've never had problems with that process .. until today, when all of a sudden, one install tells me that the DB is missing some tables. The ...
12
votes
2answers
334 views
In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
I want to make sure all of the data in my plugins/themes is handled securely before entering the database and before being output to the browser. My problem is that there are situations where the API ...
6
votes
3answers
3k views
Sample code for validating custom metabox?
I've found very little on this site or in Google searches for examples of validating metabox custom fields.
If anyone wants to give examples, here are some cases that would be useful
1) Date entered ...
4
votes
4answers
319 views
Replacing the Wordpress password validation
I have a custom application with thousands of users who already have a password stored. I would like to set up a self hosted wordpress site to accompany that application and to use the usernames and ...
1
vote
2answers
1k views
Frontend Post Form Validation
OK, there have been several posts on here about frontend posting forms. I've read them all, which got me to where I am. Now every form I come across has some form of validation which seems to check ...
0
votes
1answer
147 views
How to Debug the 'save_post' Action?
Is it possible to validate PHP code?
I have a Custom Post Type (Film) with Custom Meta Boxes.
Everything is working fine, I can add new Films and details to the Custom Meta Boxes.
My problem is ...
0
votes
1answer
140 views
Settings API - getting hidden input / submit button's name
I'm generating this form using Settings API:
<form action="options.php" method="post">
<?php settings_fields('XX_theme_settings'); do_settings_sections('my_settings'); ?>
...