Skip to content

Instantly share code, notes, and snippets.

[uschema_display_fields_shortcode template=custom]
[uschema_display_fields_shortcode template=table]
[uschema_display_fields_shortcode template=div]
[uschema_display_fields_shortcode template=list]
[uschema_display_fields_shortcode]
@boospot
boospot / mb-wc-test.php
Created November 28, 2019 14:35
test mb-woocommerce
// Register a theme options page
add_filter( 'mb_woocommerce_tabs', function ( $woocommerce_tabs ) {
$woocommerce_tabs[] = array(
'id' => 'giftcard',
'label' => __( 'Gift Carding', 'woocommerce' ),
'target' => 'giftcard_options',
'class' => array( 'show_if_simple', 'show_if_variable' ),
);
@boospot
boospot / after-pr-book-methods.php
Created September 10, 2019 17:04
After PR, Methods of Books Schema Type
array (
0 => 'bookEdition',
1 => 'bookFormat',
2 => 'illustrator',
3 => 'isbn',
4 => 'numberOfPages',
5 => 'about',
6 => 'accessMode',
7 => 'accessModeSufficient',
8 => 'accessibilityAPI',
@boospot
boospot / current_book_methods.php
Created September 10, 2019 17:00
Current Methods of Books Schema Type
array (
0 => 'bookEdition',
1 => 'bookFormat',
2 => 'illustrator',
3 => 'isbn',
4 => 'numberOfPages',
5 => 'getContext',
6 => 'getType',
7 => 'setProperty',
8 => 'addProperties',