Title: PHP Notices regarding REST API
Last modified: January 17, 2021

---

# PHP Notices regarding REST API

 *  [tonyclemmey](https://wordpress.org/support/users/tonyclemmey/)
 * (@tonyclemmey)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-notices-regarding-rest-api/)
 * Notice: register_rest_route was called incorrectly. The REST API route definition
   for if-menu/v1/did-you-made-this-request is missing the required permission_callback
   argument. For REST API routes that are intended to be public, use __return_true
   as the permission callback.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-notices-regarding-rest-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘PHP Notices regarding REST API’ is closed to new replies.

 * ![](https://ps.w.org/if-menu/assets/icon-256x256.png?rev=1862232)
 * [If Menu - Visibility control for Menus](https://wordpress.org/plugins/if-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/if-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/if-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/if-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/if-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/if-menu/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [tonyclemmey](https://wordpress.org/support/users/tonyclemmey/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/php-notices-regarding-rest-api/)
 * Status: not resolved