Title: Using Depreciated Method
Last modified: September 1, 2016

---

# Using Depreciated Method

 *  [Kyle](https://wordpress.org/support/users/kylewlawrence/)
 * (@kylewlawrence)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/using-depreciated-method/)
 * This plugin needs a very simple fix to comply with PHP 7, in order to avoid this
   depreciation warning:
    [11-Jul-2016 20:46:27 UTC] as a deprecated constructor
   in /wp-content/plugins/json-api/models/post.php on line 3
 * Just change the ” function JSON_API_Post($wp_post = null) {” to ” public function
   __construct($wp_post = null)”.
 * Is that in the works of being fixed?
 * Many thanks,
 * Kyle
 * [https://wordpress.org/plugins/json-api/](https://wordpress.org/plugins/json-api/)

The topic ‘Using Depreciated Method’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [methods](https://wordpress.org/support/topic-tag/methods/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 0 replies
 * 1 participant
 * Last reply from: [Kyle](https://wordpress.org/support/users/kylewlawrence/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/using-depreciated-method/)
 * Status: not resolved