This plugin executes a scraper for a weekly sync from the clinicaltrials.gov website. The scraper runs on Thursday at midnight (00:00).
This plugin uses laravel.mix to compile assets used for the backend of the site, such as field styles, and the Option pages which are built in Vue. Please use npm install
at the root of the plugin to install the node_modules, and you can use any of the scripts in the package.json
to compile the assets as needed. Before pushing to production, please ensure to run the production
script defined in the package.json
.
This is the primary file that registers the plugin for the WP-Admin to pick up. This file registers the vendor file, sets up the DotEnv
loader, and defines the plugin version constant and the API error logs constant with it's dir path. It also contains the activation and deactivation hook registration, which currently just flush the rewrite rules for the custom post type and taxonomies.
The files located here are executed for the wp-admin.
This is the primary file to registering scripts, styles, the ACF options pages and the save JSON file location and reading.
This file registers the custom post types for the plugin
This file registers the custom taxonomies for the plugin.
This file is not currently in use.
The files located here are executed for the frontend of the website.
This file registers any frontfacing API endpoints.
This file registers the scripts and styles for the frontend.
This file is the main loader for the admin
, and frontend
files and registers their hooks and actions here. It also loads the i18n translation file here, if it's ever populated.
This file executes on plugin activation.
This file executes on plugin deactivation.
This file registers the i18n textdomain loader.
This file registers the addAction
and addFilter
hooks needed to register admin
and frontend
methods.