| @@ -37,8 +37,9 @@ | ||
| 37 | 37 | if ( function_exists( 'register_rest_field' ) ) { // Prevent issue with Jetpack. |
| 38 | 38 | register_rest_route( 'wp-ultimate-post-grid/v1', '/notice', array( |
| 39 | 39 | 'callback' => array( __CLASS__, 'api_dismiss_notice' ), |
| 40 | 40 | 'methods' => 'DELETE', |
| 41 | + 'permission_callback' => '__return_true', | |
| 41 | 42 | )); |
| 42 | 43 | } |
| 43 | 44 | } |
| 44 | 45 | |