How to receive HTTP POST in WP?

Easy! You have a couple of options to do so. The easiest one, but less safe, is to create a brand new PHP file in the root folder of WordPress. Let’s say we will call it get_post.php and add WordPress functionality to it. Like so: <?php require_once(‘wp-load.php’); // add wordpress functionality $post = $_POST; if … Read more

Confirmation box when submitting post for review

A useful fast way is to use JavaScript in combination with an Ajax action that outputs the box. Create a small plugin. Create a folder inside plugins directory, naming it ‘SubmitReviewConf’. In this folder create a PHP file named SubmitReviewConf.php. In this file, put this code: <?php /** * Plugin Name: Submit for Review Confirmation … Read more

Add tag to post api wordpress

You’ll find an index of a good chunk of the WordPress API here on codex. The function you want is wp_set_post_tags(), but follow the links from that page to related functions. Edit: this should remove a tag from a post, per comment below // $post is your post object, e.g. from: global $post; // $target … Read more

Removing filter dropdown in posts table (in this case Yoast SEO)

These additional dropdowns are added via the restrict_manage_posts action hook. This means the dropdown output isn’t filterable, but you can remove the hooked action from Yoast SEO. The filter dropdown is added by the posts_filter_dropdown() method in the WPSEO_Metabox class. It’s added in the setup_page_analysis() method of the same class, which is hooked into admin_init … Read more