false`, and the renderer disables every control and skips * every fetch (the REST routes genuinely do not exist while off). * * Loaded after the helpers above, which it needs to build the entity * descriptor and the section config. */ require_once OPENSTATION_DIR . 'includes/agents/my-wordpress.php'; /** * Loads the agents module when the framework is enabled. * * @access private */ function openstation_agents_load() { if ( ! openstation_agents_enabled() ) { return; } require_once OPENSTATION_DIR . 'includes/agents/store.php'; require_once OPENSTATION_DIR . 'includes/agents/defaults.php'; require_once OPENSTATION_DIR . 'includes/agents/identity.php'; require_once OPENSTATION_DIR . 'includes/agents/abilities.php'; require_once OPENSTATION_DIR . 'includes/agents/runner.php'; require_once OPENSTATION_DIR . 'includes/agents/rest.php'; require_once OPENSTATION_DIR . 'includes/agents/conversations.php'; require_once OPENSTATION_DIR . 'includes/agents/privacy.php'; require_once OPENSTATION_DIR . 'includes/agents/run-window.php'; } add_action( 'plugins_loaded', 'openstation_agents_load', 5 );