Access WordPress data from external PHP application.

After a lot of reading it appears that JWT Authentication is the best way to go. grazianodev has a good explanation of implementation at: How to: Make JWT-authenticated requests to the WordPress API Thank you. My biggest concern is this answer requires the “JTW Authentication for WP REST API” plugin. I was looking for an … Read more

Notify Jenkins of new post on WordPress

Take a look at some of WordPress’s Actions & Filters – in particular, you might want something like publish_post: function my_custom_post_action( $post_id, $post ) { // Send out data to your service using something // like wp_remote_request: // https://codex.wordpress.org/Function_Reference/wp_remote_post } add_action( ‘publish_post’, ‘my_custom_post_action’, 10, 2 ); You may need to ensure that the post is … Read more