*/ function agentprose_defaults() { return array( 'enabled' => 1, 'types' => 'posts', 'content' => '', 'prefix' => '', 'subscribe' => '', 'navigate' => 0, 'inspector' => 1, 'polyfill' => 1, 'cloud_key' => '', 'cloud_search' => 1, 'analytics' => '', ); } /** * Saved settings merged over the defaults. * * @return array */ function agentprose_options() { return wp_parse_args( (array) get_option( 'agentprose', array() ), agentprose_defaults() ); } /** * The Cloud origin without a trailing slash (filterable for self-hosted Clouds). * * @return string */ function agentprose_cloud_url() { return untrailingslashit( (string) apply_filters( 'agentprose_cloud_url', AGENTPROSE_CLOUD_URL ) ); } require_once __DIR__ . '/includes/frontend.php'; if ( is_admin() ) { require_once __DIR__ . '/includes/admin.php'; }