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
Eliminate All Blocks from Editor | |
wp.data.dispatch( 'core/block-editor' ).resetBlocks([]); | |
How to disable and lock Gutenberg blocks | |
https://kinsta.com/blog/disable-gutenberg-blocks/ | |
Convert group of file blocks to ACF block | |
https://bdwm.be/gutenberg-case-study-convert-group-of-file-blocks-to-acf-block/ | |
Enabling Gutenberg-Based Custom Post Types and Taxonomies |
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
Disable REST Api without Plugins | |
https://rudrastyh.com/wordpress/disable-rest-api.html | |
Add featured image & alt text to WP REST API | |
https://allisontarr.com/2021/10/13/add-featured-image-alt-text-to-wp-rest-api/ | |
Allow ALL cross origin requests to WordPress REST API | |
https://github.com/Shelob9/rest-all-cors | |
WordPress theme using Rest API and Vue.js |
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
# alias to edit commit messages without using rebase interactive | |
# example: git reword commithash message | |
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f" | |
# aliases to change a git repo from private to public, and public to private using gh-cli | |
alias gitpublic="gh repo edit --accept-visibility-change-consequences --visibility public" | |
alias gitprivate="gh repo edit --accept-visibility-change-consequences --visibility private" | |
# delete all your repos using gh-cli (please do not run this unless you want to delete all your repos) | |
gh repo list --limit 300 --json url -q '.[].url' | xargs -n1 gh repo delete --yes |