Skip to content

Instantly share code, notes, and snippets.

@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',
@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 / 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' ),
);
[uschema_display_fields_shortcode]
[uschema_display_fields_shortcode template=list]
[uschema_display_fields_shortcode template=div]
[uschema_display_fields_shortcode template=table]
[uschema_display_fields_shortcode template=custom]
#, fuzzy
msgid ""
msgstr ""
"POT-Creation-Date: 2019-12-10 11:52+0000\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: Loco https://localise.biz/\n"
"Project-Id-Version: \n"
"Last-Translator: \n"
"Language-Team: \n"
@boospot
boospot / display-fields.css
Last active December 26, 2019 19:51
simple css to indent child schema proprties
.us-field-label {
font-weight: bold;
}
li.us-field-level-2 {
margin-left: 2em;
}
li.us-field-level-3 {
margin-left: 3em;