- Block Themes official docs
- Block Themes Handbook
- Block Editor Handbook
- Create Block Theme
- Alfredo Navas - Full Site Editing y temas basados en bloques
- Full Site Editing Youtube List by Ryan Welcher Codes
- Anatomy of a block theme
- WordPress full site editing and themes
- A new era of WordPress themes is here: Block Themes
- [The future of Themes: Designing for the block editor and beyond](http
This file contains 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 | |
/** | |
* It takes the first category find on the array. | |
* Ideally for stores with products with a single category. | |
*/ | |
add_filter( 'woocommerce_continue_shopping_redirect', 'wa_custom_redirect_continue_shopping' ); | |
function wa_custom_redirect_continue_shopping() { | |
global $woocommerce; |
This file contains 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 | |
/** | |
* In this case, the value to sort is a date in string, i.e. "01/01/2018" or "2017-12-31" | |
*/ | |
/** | |
* Example of array | |
*/ | |
$array = array( | |
array( "01/01/1968", "Do Androids Dream of Electric Sheep?", "Philip K. Dick", "Philosophical novel" ), |
This file contains 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 | |
/** | |
* Inspiration: https://www.wpexplorer.com/wordpress-page-templates-plugin/ | |
*/ | |
add_filter( 'theme_page_templates', 'add_new_template' ); | |
add_filter( 'wp_insert_post_data', 'register_templates' ); | |
add_filter( 'template_include', 'view_template' ); | |
function register_templates( $atts ) { |
This file contains 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
{"lastUpload":"2020-06-18T09:45:41.725Z","extensionVersion":"v3.4.3"} |
This file contains 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
$('#form').submit( function (event) { // Needs to be submit to catch all the fields | |
event.preventDefault(); | |
var formContent = $( this ).serialize(); | |
}); | |
$('input[name=checkboxes[]]:checked').serialize(); // Capture all checked checkboxes |