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
| Eliminate All Blocks from Editor | |
| wp.data.dispatch( 'core/block-editor' ).resetBlocks([]); | |
| How to Use WordPress Block Builder to Create Custom Page Layouts Easily | |
| https://www.webfactoryltd.com/blog/how-to-use-wordpress-block-builder-to-create-custom-page-layouts-easily/ | |
| How to Extend or Create Variations for WordPress Blocks | |
| https://getbutterfly.com/how-to-extend-or-create-variations-for-wordpress-blocks/ | |
| How to disable and lock Gutenberg blocks |
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
| 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 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
| # 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" | |
| # usage gh lockdown | |
| # git alias to disable wikis, issues, projects for existing repos | |
| lockdown = !f() { gh repo edit "$@" --enable-issues=false --enable-wiki=false --enable-projects=false; }; f | |
| # git alias to set predefined parameters with gh repo create command (disable issues, wikis, and projects) | |
| # usage: gh rpc myproject --private or gh rpc myproject --description "Passing Another Parameter" |