Class SLM_Woo_Account{
public static $endpoint = 'my-licenses';
public function __construct(){
// Actions used to insert a new endpoint in the WordPress.
add_action('init', array($this, 'add_endpoints'));
add_filter('query_vars', array($this, 'add_query_vars'), 0);
// Change the My Accout page title.
add_filter('the_title', array($this, 'endpoint_title'));
// Insering your new tab/page into the My Account page.
add_filter('woocommerce_account_menu_items', array($this, 'slm_woo_menu_list'));
add_action('woocommerceaccount' . self::$endpoint . '_endpoint', array($this, 'endpoint_content'));
}
Hello
Thank you for providing this good plugin, so that my business was much better.
On License management page (for WooCommerce), table heading datas are not displayed properly on SP.
WooCommerce display these heading datas for
.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before { content: attr(data-title) ": "; font-weight: 700; float: left; }
//https://github.com/michelve/software-license-manager/blob/master/woocommerce/includes/wc_licenses_class.php However, your code doesn't have "data-title" attribute for
`/**
Class SLM_Woo_Account{ public static $endpoint = 'my-licenses'; public function __construct(){ // Actions used to insert a new endpoint in the WordPress. add_action('init', array($this, 'add_endpoints')); add_filter('query_vars', array($this, 'add_query_vars'), 0); // Change the My Accout page title. add_filter('the_title', array($this, 'endpoint_title')); // Insering your new tab/page into the My Account page. add_filter('woocommerce_account_menu_items', array($this, 'slm_woo_menu_list')); add_action('woocommerceaccount' . self::$endpoint . '_endpoint', array($this, 'endpoint_content')); }
}
/**
// Flush rewrite rules on plugin activation. register_activation_hook(FILE, array('Doc', 'install')); `
Please check the parts of "data-title" attributes.
KIng Regards
KAZUKI
thx @k-kikuchi-idea-hack - i will merge this for the next release.
fixed: https://github.com/michelve/software-license-manager/pull/34