Functions are causing errors

You don’t want to add function vote_up() { […] } at the top of every post if you display more than one post on a page. You want to declare the vote_up() function in your plugin’s PHP file. Once the plugin declares the function, as long as the plugin is active, you can just call … Read more

Authentication over CURL

I figured out the answer myself and I’ll post it here in case anyone else has this problem. Basically in WP 3.9.1, wp_insert_post() checks the current logged in user for account capabilities (at least this is what I assume). Since I was connecting over cURL, there is no logged in user so the capability checks … Read more

bypassing permission error for a plugin’s page

While there can be checks inside page the page itself is added via API call, like add_options_page() (there are several analogous functions that add pages to different parts of admin). This call includes capability argument. In your case either the extension in question is poorly coded and does something strange around there or your user … Read more