';
}
// add the action
add_action('woocommerce_archive_description', 'mp_profit_woocommerce_archive_description', 10, 2);
// define the woocommerce_archive_description callback
function mp_profit_woocommerce_before_single_product() {
echo '
';
}
// add the action
add_action('woocommerce_before_single_product', 'mp_profit_woocommerce_before_single_product', 10, 2);
// define the woocommerce_archive_description callback
function mp_profit_woocommerce_sidebar() {
echo '
'
. '
'
. '
';
}
// add the action
add_action('woocommerce_sidebar', 'mp_profit_woocommerce_sidebar', 10, 2);
remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
function mp_profit_woocommerce_after_main_content() {
echo '
'
. '';
}
add_action('woocommerce_after_main_content', 'mp_profit_woocommerce_after_main_content', 10);
add_filter( 'woocommerce_related_products_args', 'mp_profit_related_products_args' );
function mp_profit_related_products_args( $args ) {
$args['posts_per_page'] = 3; // 3 related products
return $args;
}
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
add_action( 'woocommerce_before_main_content', 'mp_profit_woocommerce_output_content_wrapper', 10 );
function mp_profit_woocommerce_output_content_wrapper() {
echo '';
}