Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'template_redirect', function() {
- global $wp;
- $wc_frontend_manager_page_id = get_option( 'wc_frontend_manager_page_id' );
- if ( wcfm_is_vendor() && isset( $wp->query_vars['page'] ) && is_page( $wc_frontend_manager_page_id ) ) {
- wp_redirect( wcfm_get_endpoint_url( 'wcfm-products', '', get_wcfm_page() ) );
- die;
- }
- } );
Add Comment
Please, Sign In to add comment