Yith Request a Quote product admin link change
-
When receiving a qoute request through yith the email displays Product/Quantity/Total, but when clicked on the link we cannot see product in shop unless logged into wp-admin and it redirects to product edit page.
How can I change this code
$product_admin_link = ''; $posttype_object = get_post_type_object( get_post( $_product->get_id() )->post_type ); if ( ( $posttype_object ) && ( $posttype_object->_edit_link ) ) { $product_admin_link = admin_url( sprintf( $posttype_object->_edit_link . '&action=edit', $_product->get_id() ) ); } ?>
So that it will link to product page not admin/edit page?
Thank you!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.