moved shared functions

This commit is contained in:
Ross Trottier 2024-05-02 14:03:46 -06:00
parent 2eb4cd0a09
commit 7f72fd5832
3 changed files with 3 additions and 4 deletions

View File

@ -14,4 +14,5 @@ if( ! defined( 'ABSPATH' ) ){
include( plugin_dir_path( __FILE__ ) . 'woocommerce/thank_you_page_customizations.php');
include( plugin_dir_path( __FILE__ ) . 'woocommerce/my_account_customizations.php');
include( plugin_dir_path( __FILE__ ) . 'rest-api/provisioner_rest_api_extensions.php');
include( plugin_dir_path( __FILE__ ) . 'woocommerce/new_subscription_set_to_needs_provision.php');
include( plugin_dir_path( __FILE__ ) . 'woocommerce/new_subscription_set_to_needs_provision.php');
include( plugin_dir_path( __FILE__ ) . 'shared/federated_woocommerce_shared_functions.php');

View File

@ -1,13 +1,11 @@
<?php
include( plugin_dir_path( __FILE__ ) . 'federated_woocommerce_shared_functions.php');
/**
* @snippet WooCommerce Add Provision Info Tab
* @author Ross Trottier
*/
// 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' );