wp.blocks.getBlockTypes()
//A list of all blocks: https://github.com/WordPress/gutenberg/tree/master/packages/block-editor/src/components/inner-blocks // Útil para filtros de Gutenberg como "allowed_block_types"
- archives
- audio
- button
- categories
# CSS/JS auto-versioning | |
RewriteEngine On | |
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] |
// google fonts | |
wp_enqueue_style( 'google_fonts', 'https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;600&family=Spectral&display=swap', array(), null ); |
magick mogrify -format jpg -quality 95 -path "C:\Users\Lovro\Documents\Posao\Link2\Piranesi\Optimizirane slike" *.tif |
wp media regenerate |
UPDATE `topomati_cp1`.`cp_options` SET `option_value` = | |
(SELECT `option_value` FROM `topomati_cp_hr`.`cp_options` WHERE `option_name` = 'wpb_js_templates') | |
WHERE `option_name` = 'wpb_js_templates'; |
//Windows! | |
mysqldump --user=root --all-databases --result-file=name | |
//without result-file (using > filename) output goes to UTF16LE, which mysql cannot load!!! |
1. Create new column in table wp_terms | |
2. add filter get_terms_orderby which returns 't.<created column>', where created column is created column in wp_terms |
wp search-replace 'http://example.test' 'http://example.com' --skip-columns=guid --dry-run | |
--dry-run //for dry run | |
--export=database.sql // for export database |
//get post or page slug | |
get_post_field( 'post_name' ) // second parameter of post ID could be added | |
//set automatic updates: https://wordpress.org/support/article/configuring-automatic-background-updates/ |
wp.blocks.getBlockTypes()
//A list of all blocks: https://github.com/WordPress/gutenberg/tree/master/packages/block-editor/src/components/inner-blocks // Útil para filtros de Gutenberg como "allowed_block_types"