Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38821, comment 4


Ignore:
Timestamp:
11/16/2016 10:36:16 PM (7 years ago)
Author:
jnylen0
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38821, comment 4

    initial v1  
    88
    99{{{#!php
     10<?php
    1011add_action( 'rest_api_init', function() {
    1112    register_rest_field( 'comment', 'karma', array(