Since custom APIs are a feature to be integrated into the UniWP system, you have to edit some files inside the UniWP plugin folder.
The plugin folder is called tigerforge_uniwp_plugin and is located inside the WordPress system folder dedicated to plugins (wp-content/plugins).
The first thing to do is to activate the custom APIs functionality:
- go inside the custom folder of the UniWP plugin (tigerforge_uniwp_plugin/custom);
. - edit the activate.php file, removing the // comment characters at the beginning of the include command;
. - check if a file named custom.php exists in the custom folder. If there is a file named __custom.php, just rename it to custom.php. If, for some reason, this file doesn’t exist, just create a new custom.php file.
In the end, you should have a custom folder with a structure like this one:
Into the activate.php file, the include command should be enabled, without the comment characters:
Now, you are ready to write into the custom.php file your new custom APIs.