Controller class for WooCommerce written in php for my own personal user