Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- After adding code to functions.php go to Settings -> Permalinks and save permalinks
- */
- function wsawoo_myauctionsend_endpoint() {
- add_rewrite_endpoint( 'myauctionsend', EP_ROOT | EP_PAGES );
- }
- add_action( 'init', 'wsawoo_myauctionsend_endpoint' );
- add_filter( 'woocommerce_account_menu_items', 'wsawoo_new_menu_items' );
- function wsawoo_new_menu_items( $items ) {
- $items[ 'myauctionsend' ] = __( 'My Auctions', 'wsawoo' );
- return $items;
- }
- add_action( 'woocommerce_account_myauctionsend_endpoint', 'wsawoo_endpoint_content' );
- function wsawoo_endpoint_content() {
- //content goes here
- echo do_shortcode ('[woocommerce_simple_auctions_my_auctions]');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement