You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
529 B
PHP

<?php
namespace RT\ThePostGrid\Controllers\Api;
use RT\ThePostGrid\Helpers\Fns;
class CountLayoutInstall {
public function __construct() {
add_action( "rest_api_init", [ $this, 'register_count_layout_route' ] );
}
public function register_count_layout_route() {
register_rest_route( 'rttpg/v1', 'countlayout', [
'methods' => 'POST',
'callback' => [ $this, 'count_layout' ],
'permission_callback' => function () {
return true;
}
] );
}
public function count_layout() {
}
}