Plugin Directory

Changeset 3450110


Ignore:
Timestamp:
01/30/2026 03:11:37 AM (6 weeks ago)
Author:
liaison
Message:

Added REST controller for data-feteching from Gutenburg block.

Location:
liaison-site-prober/trunk
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • liaison-site-prober/trunk/README.txt

    r3419679 r3450110  
    55Requires at least: 6.8 
    66Tested up to: 6.8 
    7 Stable tag: 1.1.0 
     7Stable tag: 1.2.0 
    88License: GPLv3 or later 
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html 
     
    6666== Changelog ==
    6767
     68= 1.2.0 =
     69- Added REST API endpoint: `/wp-json/site-prober/v1/logs`
     70- Enables JavaScript applications to retrieve action logs.
     71
    6872= 1.1.0 =
    6973* Add PHPUnit test cases.
  • liaison-site-prober/trunk/includes/class-liaison-site-prober-actions.php

    r3416968 r3450110  
    3434
    3535        // register hooks to capture actions
    36         //add_action( 'export_wp', [ $this, 'wpsp_export_csv' ] );
    3736
    3837        if ( defined('WP_RUNNING_PHPUNIT') ) {
  • liaison-site-prober/trunk/includes/class-liaison-site-prober.php

    r3408825 r3450110  
    118118
    119119        $this->loader = new LIAISIPR_Loader();
     120
     121        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-liaison-rest-controller.php';
     122        add_action( 'rest_api_init', function () {
     123            $controller = new LIAISIPR_REST_Controller();
     124            $controller->register_routes();
     125        } );
     126
    120127
    121128    }
  • liaison-site-prober/trunk/liaison-site-prober.php

    r3419679 r3450110  
    22
    33/**
     4 * Plugin Name:       Liaison Site Prober
     5 * Plugin URI:        https://github.com/liaisontw/wp-site-prober_svn_git
     6 * Description:       Simple activity / audit logger for WordPress. Creates activity table, hooks common events, admin UI and CSV export.
     7 * Version:           1.2.1
     8 * Author:            liason
     9 * Author URI:        https://github.com/liaisontw/
     10 * License:           GPLv3 or later 
     11 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html 
     12 * Text Domain:       liaison-site-prober
     13 * Domain Path:       /languages
     14 *
    415 * The plugin bootstrap file
    516 *
     
    1425 *
    1526 * @wordpress-plugin
    16  * Plugin Name:       Liaison Site Prober
    17  * Plugin URI:        https://github.com/liaisontw/liaison-site-prober_svn_git
    18  * Description:       Simple activity / audit logger for WordPress. Creates activity table, hooks common events, admin UI and CSV export.
    19  * Version:           1.1.0
    20  * Author:            liason
    21  * Author URI:        https://github.com/liaisontw/
    22  * License:           GPLv3 or later 
    23  * License URI:       https://www.gnu.org/licenses/gpl-3.0.html 
    24  * Text Domain:       liaison-site-prober
    25  * Domain Path:       /languages
    2627 */
    2728
     
    3637 * Rename this for your plugin and update it as you release new versions.
    3738 */
    38 define( 'LIAISIPR_VERSION', '1.1.0' );
     39define( 'LIAISIPR_VERSION', '1.2.0' );
    3940
    4041/**
Note: See TracChangeset for help on using the changeset viewer.