diff --git a/federated.php b/federated.php index 3d19b0d..80153c1 100644 --- a/federated.php +++ b/federated.php @@ -3,7 +3,7 @@ /** * Plugin Name: Federated Computer E-Commerce * Description: This plugin contains customizations for Federated Computer. - * Version: 1.1.0 + * Version: 1.2.0 */ @@ -17,6 +17,4 @@ include( plugin_dir_path( __FILE__ ) . 'rest-api/provisioner_rest_api_extensions include( plugin_dir_path( __FILE__ ) . 'woocommerce/new_subscription_set_to_needs_provision.php'); include( plugin_dir_path( __FILE__ ) . 'woocommerce/processing_to_complete_order.php'); include( plugin_dir_path( __FILE__ ) . 'shared/federated_woocommerce_shared_functions.php'); -include( plugin_dir_path( __FILE__ ) . 'acf-extensions/search-acf.php'); - -//include( plugin_dir_path( __FILE__ ) . 'rest-api/get_dns_records_test.php'); \ No newline at end of file +include( plugin_dir_path( __FILE__ ) . 'acf-extensions/search-acf.php'); \ No newline at end of file diff --git a/rest-api/get_dns_records_test.php b/rest-api/get_dns_records_test.php deleted file mode 100644 index 929b08f..0000000 --- a/rest-api/get_dns_records_test.php +++ /dev/null @@ -1,28 +0,0 @@ - 'GET', - 'callback' => 'federated_get_dns', - 'permissions_callback' => 'check_federated_permissions' - ) - ); -} - -function federated_get_dns($request){ - $hostname = $request['hostname']; - - $dns = dns_get_record($hostname); - - return $dns; -} \ No newline at end of file diff --git a/woocommerce/my_account_customizations.php b/woocommerce/my_account_customizations.php index ae43156..2a6600e 100644 --- a/woocommerce/my_account_customizations.php +++ b/woocommerce/my_account_customizations.php @@ -11,18 +11,6 @@ if( ! defined( 'ABSPATH' ) ){ // 1. Register new endpoint (URL) for My Account page // Note: Re-save Permalinks or it will give 404 error -add_action('init', 'register_federated_my_account_styles'); -function register_federated_my_account_styles() { - wp_register_style( 'my-account', '/wp-content/plugins/fed-comp-customizations/css/federated-my-account.css' ); - wp_register_style( 'my-account-sidebar', '/wp-content/plugins/fed-comp-customizations/css/federated-my-account-sidebar.css' ); -} -add_action( 'wp_enqueue_scripts', 'conditionally_enqueue_federated_my_account_styles_scripts' ); -function conditionally_enqueue_federated_my_account_styles_scripts() { - if ( is_page('my-account') ) { - wp_enqueue_style( 'my-account' ); - wp_enqueue_style( 'my-account-sidebar' ); - } -} function federated_provision_info_endpoint() { add_rewrite_endpoint( 'provision-info', EP_ROOT | EP_PAGES ); @@ -81,15 +69,17 @@ function echo_subscription_info($subscription){ if(!empty($domain) && $provision_status === 'provisioned'){ echo '
Click the links below to access your apps. Also, check out our helpful articles here for tips and tutorials on how to use these amazing open source tools.
'; + echo 'Click here to access your apps. Also, check out our helpful articles here for tips and tutorials on how to use these amazing open source tools.
'; if($domain_status === 'default'){ echo 'This is a default domain, please do not change your admin password until you have switched to your custom domain.
'; } echo 'Admin Username: admin@' . $domain . ' \\ Initial Admin Password: ' . $initial_admin_password . '
'; echo 'Your Federated Core is your very own, we provision each one made-to-order. Your apps, on your server, without having to share with anyone else. This only takes about 5 - 10 minutes, please check back shortly.
'; echo '' . $app_description . '
'; - echo '