Forums
(@sundayamizo)
2 years, 9 months ago
This works for me.
$current_user = wp_get_current_user(); $args = array( 'post_type' => 'journals', 'post_status' => 'publish', 'meta_query' => array( array( 'key' => 'editors', 'value' => $current_user->ID, 'compare' => 'LIKE' ) ) );
3 years, 8 months ago
@shaunkuschel Above solution works for me.
Thanks
add_filter( 'woocommerce_calculated_total', 'change_calculated_total', 10, 2 ); function change_calculated_total( $total, $cart) { return $total - 150; }
How can I pass dynamic value to this?