Tag Info

Hot answers tagged

4

Is there more efficient ways to validate the quotes using the WordPress api? I think you should set a nonce for the form You also should check if current user has capability to save quote To get properly sanitize values form $_POST look at filter_input and/or filter_input_array I don't see performance issues on validation, but a possible ...


2

These two are pretty close, but relate to slightly different stages of the process. In purely technical terms WordPress has two different APIs — Options API and Settings API. Options API deals with saving and retrieving options from database. So its scope and scope of "options" in terminology is that of purely storage. Settings API deals with admin pages, ...


1

I'm assuming your referring to a server based cron job. I'm not sure if your familiar with it but you could also use WP Cron. It's an api that built into core. It's a little easier to work with than a true cron job IMHO. It does have a mild caveat however. Which could also be it's strength. The scheduled events do not fire based on the servers internal ...


1

Use an auto-loader and let PHP resolve that problem for you. Then only one class will be loaded, and you don’t have to worry about doubled declarations. Example I have an (unfinished) plugin Post Notes with the following file structure: - plugin.php - php/ - Nonce_Validator.php - Save_Post_Request_Validator.php - Textarea.php - … and more ...



Only top voted, non community-wiki answers of a minimum length are eligible