REST API controller class
-
Hello,
I’d want to use a custom php class to control my custom type endpoint in rest api.
I add php class here, but it does not work:
function cptui_load_ui_class() { require_once plugin_dir_path( __FILE__ ) . 'classes/class.cptui_admin_ui.php'; require_once plugin_dir_path( __FILE__ ) . 'classes/class.cptui_debug_info.php'; require_once plugin_dir_path( __FILE__ ) . 'classes/class.cptui_rest_controller.php'; } add_action( 'init', 'cptui_load_ui_class' );
Do I have to put php class in another folder?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘REST API controller class’ is closed to new replies.