Title: Using web hooks json
Last modified: August 31, 2016

---

# Using web hooks json

 *  [pb1uk](https://wordpress.org/support/users/pb1uk/)
 * (@pb1uk)
 * [10 years ago](https://wordpress.org/support/topic/using-web-hooks-json/)
 * I’m using a web hook to pull content from my blog into other areas of my site
   which isn’t wordpress. I’m using code like the below:
 *     ```
       <?php if( $latest = @file_get_contents( 'http://www.my-domain.com/my-blog/?wp_hook=get_posts' ) ) : ?>
       	<?php $_latest = json_decode( $latest ); ?>
               <ul>
       	<?php foreach( $_latest->return as $latest ) : ?>
       		<li><?php echo $latest->post_title; ?></li>
       	<?php endforeach; ?>
               </ul>
       <?php endif; ?>
       ```
   
 * The url returns the data as a json encoded array. It appears to be working fine.
   Longer term though are there any performance issues/issues I could encounter 
   pulling data out of my blog this way?

The topic ‘Using web hooks json’ is closed to new replies.

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)
 * [web hook](https://wordpress.org/support/topic-tag/web-hook/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [pb1uk](https://wordpress.org/support/users/pb1uk/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/using-web-hooks-json/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
