POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
http://mixmeals.com/wp-json/wp/v2/posts/?include=470,469
POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
http://mixmeals.com/wp-json/wp/v2/posts/?include=470,469
add_action( 'woocommerce_before_add_to_cart_button', 'sd_display_bulk_discount_table' ); | |
function sd_display_bulk_discount_table() { | |
global $woocommerce, $post, $product; | |
$array_rule_sets = get_post_meta( $post->ID, '_pricing_rules', true ); | |
if ( $array_rule_sets && is_array( $array_rule_sets ) && sizeof( $array_rule_sets ) > 0 ) { |
/** | |
* Embed Gists with a URL | |
* | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
* |