[wp-hackers] Throwing An Error And Not Saving When Metabox Input Is Wrong

Alex Andrews awgandrews at gmail.com
Mon Jan 9 13:26:56 UTC 2012


Hi all,

I know how to throw an error when an option box is incorrectly entered -
what is the best practice (outside of javascript) for doing this with a
metabox? Say I have a percentage box, how do I cry foul if it is over 100%,
or fractional and so on?

Thanks a lot,

Alex


More information about the wp-hackers mailing list