Skip to content

Instantly share code, notes, and snippets.

@satouriko
Last active November 10, 2018 19:24
Show Gist options
  • Select an option

  • Save satouriko/ec905d5378fbfbdd585ab63dfd39c609 to your computer and use it in GitHub Desktop.

Select an option

Save satouriko/ec905d5378fbfbdd585ab63dfd39c609 to your computer and use it in GitHub Desktop.
Activate REST API for WordPress.
<?php
/*
Plugin Name: Enable Anonymous Rest Comment
Plugin URI: https://wordpress.org/plugins/enable-anonymous-rest-comment/
Description: Enable comments via rest api without login.
Version: 0.1
Author: Cooler
Author URI: https://gist.github.com/rikakomoe/ec905d5378fbfbdd585ab63dfd39c609
License: Unlicense
License URI: https://unlicense.org/
*/
add_filter( 'rest_allow_anonymous_comments', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment