Making WordPress.org


Ignore:
Timestamp:
04/26/2016 06:49:17 PM (10 years ago)
Author:
ocean90
Message:

Translate: Add a REST API endpoint to manage jobs via WP's cron API.

See #1636.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/class-plugin.php

    r2988 r3014  
    4141                add_filter( 'pre_handle_404', array( $this, 'short_circuit_handle_404' ) );
    4242                add_action( 'wp_default_scripts', array( $this, 'bump_script_versions' ) );
     43
     44                // Load the API endpoints.
     45                add_action( 'rest_api_init', array( __NAMESPACE__ . '\REST_API\Base', 'load_endpoints' ) );
    4346
    4447                if ( defined( 'WP_CLI' ) && WP_CLI ) {
Note: See TracChangeset for help on using the changeset viewer.