This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WEBVTT | |
| 1 | |
| 00:00:00.666 --> 00:00:02.416 | |
| Every business starts somewhere | |
| 2 | |
| 00:00:02.625 --> 00:00:04.375 | |
| And |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Array of post types to include the column | |
| function x_favorite_post_types() { | |
| return [ | |
| 'product' /* product post type */ | |
| ]; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('enqueue_block_editor_assets', function() { | |
| wp_add_inline_style('wp-edit-blocks', ' | |
| .wp-block[data-type*="bricks-component"] > div::after, | |
| .wp-block[data-type*="default/gutenb"] > div::after { | |
| content: "See additional settings in the sidebar on the right"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_add_to_cart_redirect', 'show_add_to_cart_toast', 10, 1 ); | |
| function show_add_to_cart_toast( $url ) { | |
| $product_id = absint( $_REQUEST['add-to-cart'] ?? 0 ); | |
| if ( $product_id ) { | |
| $product = wc_get_product( $product_id ); |