admin_post in object oriented plugin

You can build this in to just one class. Obviously change the method names to anything you wish, these are just the ones I use in my plugins. You’ll notice that I’ve also added a couple of sanity checks – one is designed to stop people accessing your plugin page directly (i.e. before the core … Read more

Custom forms + Polylang

for the action label, there are some reserved terms, that wordpress uses internally. so you should avoid this terms (specially true in http_post ot get requests). ‘s’ stands for search, that’s why the output is a search result page. here you can find reserved terms: https://codex.wordpress.org/Reserved_Terms If you need very simple forms (so it seems … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)