Last active
July 18, 2020 18:11
-
-
Save wpscholar/8515a53e28f408a489376b014ecf3be6 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings
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
{"lastUpload":"2020-07-18T18:11:37.497Z","extensionVersion":"v3.4.3"} |
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
[ | |
{ | |
"metadata": { | |
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085", | |
"publisherId": "bungcip.better-toml", | |
"publisherDisplayName": "bungcip" | |
}, | |
"name": "better-toml", | |
"publisher": "bungcip", | |
"version": "0.3.2" | |
}, | |
{ | |
"metadata": { | |
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3", | |
"publisherId": "formulahendry.code-runner", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "code-runner", | |
"publisher": "formulahendry", | |
"version": "0.11.0" | |
}, | |
{ | |
"metadata": { | |
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd", | |
"publisherId": "Shan.code-settings-sync", | |
"publisherDisplayName": "Shan" | |
}, | |
"name": "code-settings-sync", | |
"publisher": "Shan", | |
"version": "3.4.3" | |
}, | |
{ | |
"metadata": { | |
"id": "68464f0b-8ce5-408e-bed6-4c13209b254a", | |
"publisherId": "mrorz.language-gettext", | |
"publisherDisplayName": "mrorz" | |
}, | |
"name": "language-gettext", | |
"publisher": "mrorz", | |
"version": "0.1.1" | |
}, | |
{ | |
"metadata": { | |
"id": "5db78037-f674-459f-a236-db622c427c5b", | |
"publisherId": "PKief.material-icon-theme", | |
"publisherDisplayName": "PKief" | |
}, | |
"name": "material-icon-theme", | |
"publisher": "PKief", | |
"version": "4.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8", | |
"publisherId": "christian-kohler.npm-intellisense", | |
"publisherDisplayName": "christian-kohler" | |
}, | |
"name": "npm-intellisense", | |
"publisher": "christian-kohler", | |
"version": "1.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "044b4b31-2969-4af3-895d-855433b8b46d", | |
"publisherId": "felixfbecker.php-debug", | |
"publisherDisplayName": "felixfbecker" | |
}, | |
"name": "php-debug", | |
"publisher": "felixfbecker", | |
"version": "1.13.0" | |
}, | |
{ | |
"metadata": { | |
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca", | |
"publisherId": "neilbrayfield.php-docblocker", | |
"publisherDisplayName": "neilbrayfield" | |
}, | |
"name": "php-docblocker", | |
"publisher": "neilbrayfield", | |
"version": "2.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "651dce1f-eda8-4a5b-aa26-0d1266de8ed1", | |
"publisherId": "MehediDracula.php-namespace-resolver", | |
"publisherDisplayName": "MehediDracula" | |
}, | |
"name": "php-namespace-resolver", | |
"publisher": "MehediDracula", | |
"version": "1.1.8" | |
}, | |
{ | |
"metadata": { | |
"id": "b0a47156-9132-49a2-bebd-ed16d91b1fa6", | |
"publisherId": "ikappas.phpcs", | |
"publisherDisplayName": "ikappas" | |
}, | |
"name": "phpcs", | |
"publisher": "ikappas", | |
"version": "1.0.5" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "5.1.3" | |
}, | |
{ | |
"metadata": { | |
"id": "4f1ac5ff-ef9c-4c01-8324-cfaa7f215f57", | |
"publisherId": "nobuhito.printcode", | |
"publisherDisplayName": "nobuhito" | |
}, | |
"name": "printcode", | |
"publisher": "nobuhito", | |
"version": "3.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "74087f8d-b363-4d25-874a-70d700eb42a8", | |
"publisherId": "eamodio.restore-editors", | |
"publisherDisplayName": "eamodio" | |
}, | |
"name": "restore-editors", | |
"publisher": "eamodio", | |
"version": "0.2.1" | |
}, | |
{ | |
"metadata": { | |
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a", | |
"publisherId": "dbaeumer.vscode-eslint", | |
"publisherDisplayName": "dbaeumer" | |
}, | |
"name": "vscode-eslint", | |
"publisher": "dbaeumer", | |
"version": "2.1.8" | |
}, | |
{ | |
"metadata": { | |
"id": "ffda6552-0ad5-431b-a4fa-0905a7e4f3f0", | |
"publisherId": "bmewburn.vscode-intelephense-client", | |
"publisherDisplayName": "bmewburn" | |
}, | |
"name": "vscode-intelephense-client", | |
"publisher": "bmewburn", | |
"version": "1.5.2" | |
}, | |
{ | |
"metadata": { | |
"id": "6fc9fa34-b8b2-4071-9a0d-3eeb81cd9cfb", | |
"publisherId": "fknop.vscode-npm", | |
"publisherDisplayName": "fknop" | |
}, | |
"name": "vscode-npm", | |
"publisher": "fknop", | |
"version": "3.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "9df95cb4-c4e6-4de0-b771-f0cb91c96e7b", | |
"publisherId": "persoderlind.vscode-phpcbf", | |
"publisherDisplayName": "persoderlind" | |
}, | |
"name": "vscode-phpcbf", | |
"publisher": "persoderlind", | |
"version": "0.0.8" | |
}, | |
{ | |
"metadata": { | |
"id": "68766e38-1f07-4a9f-9716-ce0d08ff7ecc", | |
"publisherId": "fabiospampinato.vscode-statusbar-debugger", | |
"publisherDisplayName": "fabiospampinato" | |
}, | |
"name": "vscode-statusbar-debugger", | |
"publisher": "fabiospampinato", | |
"version": "2.0.6" | |
}, | |
{ | |
"metadata": { | |
"id": "2b2535e4-d0cd-4b0a-9a18-5db6d6fb0c31", | |
"publisherId": "toba.vsfire", | |
"publisherDisplayName": "toba" | |
}, | |
"name": "vsfire", | |
"publisher": "toba", | |
"version": "1.4.1" | |
}, | |
{ | |
"metadata": { | |
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af", | |
"publisherId": "ms-vsliveshare.vsliveshare", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare", | |
"publisher": "ms-vsliveshare", | |
"version": "1.0.2427" | |
}, | |
{ | |
"metadata": { | |
"id": "f38fdd1c-7ee2-47b1-90b9-77ecc90d4bff", | |
"publisherId": "ms-vsliveshare.vsliveshare-audio", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare-audio", | |
"publisher": "ms-vsliveshare", | |
"version": "0.1.85" | |
} | |
] |
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
// Empty |
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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "cmd+t", | |
"command": "-workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "cmd+t", | |
"command": "editor.action.insertSnippet" | |
}, | |
{ | |
"key": "cmd+backspace", | |
"command": "-deleteAllLeft", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "cmd+backspace", | |
"command": "editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+cmd+k", | |
"command": "-editor.action.deleteLines", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "cmd+d", | |
"command": "-editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "cmd+d", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "-editor.action.copyLinesDownAction", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+left", | |
"command": "workbench.action.navigateBack" | |
}, | |
{ | |
"key": "ctrl+-", | |
"command": "-workbench.action.navigateBack" | |
}, | |
{ | |
"key": "ctrl+shift+right", | |
"command": "workbench.action.navigateForward" | |
}, | |
{ | |
"key": "ctrl+shift+-", | |
"command": "-workbench.action.navigateForward" | |
}, | |
{ | |
"key": "alt+cmd+/", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+a", | |
"command": "-editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+cmd+a", | |
"command": "git.stageSelectedRanges" | |
}, | |
{ | |
"key": "shift+cmd+r", | |
"command": "git.unstageSelectedRanges" | |
}, | |
{ | |
"key": "cmd+r", | |
"command": "workbench.action.openRecent" | |
}, | |
{ | |
"key": "ctrl+r", | |
"command": "-workbench.action.openRecent" | |
}, | |
{ | |
"key": "f11", | |
"command": "-extension.node-debug.startWithStopOnEntry", | |
"when": "!inDebugMode && debugConfigurationType == 'node'" | |
}, | |
{ | |
"key": "f6", | |
"command": "-workbench.action.debug.pause", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f6", | |
"command": "workbench.action.debug.stop", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "shift+f5", | |
"command": "-workbench.action.debug.stop", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f7", | |
"command": "workbench.action.debug.stepInto", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f11", | |
"command": "-workbench.action.debug.stepInto", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f8", | |
"command": "workbench.action.debug.stepOver", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f10", | |
"command": "-workbench.action.debug.stepOver", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "shift+cmd+b", | |
"command": "-workbench.action.tasks.build" | |
}, | |
{ | |
"key": "shift+cmd+b", | |
"command": "editor.debug.action.toggleBreakpoint", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "f9", | |
"command": "-editor.debug.action.toggleBreakpoint", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+f7", | |
"command": "workbench.action.debug.stepOut", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "shift+f11", | |
"command": "-workbench.action.debug.stepOut", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f9", | |
"command": "workbench.action.debug.continue", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f5", | |
"command": "-workbench.action.debug.continue", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f10", | |
"command": "-extension.node-debug.startWithStopOnEntry", | |
"when": "!inDebugMode && debugConfigurationType == 'node'" | |
}, | |
{ | |
"key": "shift+cmd+e", | |
"command": "workbench.view.explorer" | |
}, | |
{ | |
"key": "shift+cmd+e", | |
"command": "-workbench.view.explorer" | |
}, | |
{ | |
"key": "shift+cmd+g", | |
"command": "workbench.view.scm" | |
}, | |
{ | |
"key": "ctrl+shift+g", | |
"command": "-workbench.view.scm" | |
}, | |
{ | |
"key": "shift+cmd+x", | |
"command": "workbench.view.extensions" | |
}, | |
{ | |
"key": "shift+cmd+x", | |
"command": "-workbench.view.extensions" | |
}, | |
{ | |
"key": "shift+cmd+d", | |
"command": "workbench.view.debug" | |
}, | |
{ | |
"key": "shift+cmd+d", | |
"command": "-workbench.view.debug" | |
}, | |
{ | |
"key": "shift+cmd+g", | |
"command": "-editor.action.previousMatchFindAction", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "shift+cmd+g", | |
"command": "-workbench.action.terminal.findPreviousTerminalFocus", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "shift+cmd+g", | |
"command": "-workbench.action.terminal.findPrevious", | |
"when": "terminalFindWidgetFocused" | |
}, | |
{ | |
"key": "cmd+escape", | |
"command": "workbench.action.maximizeEditor" | |
}, | |
{ | |
"key": "alt+s", | |
"command": "workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "cmd+l", | |
"command": "workbench.action.gotoLine" | |
}, | |
{ | |
"key": "ctrl+g", | |
"command": "-workbench.action.gotoLine" | |
}, | |
{ | |
"key": "shift+cmd+w", | |
"command": "-workbench.action.closeWindow" | |
}, | |
{ | |
"key": "shift+cmd+w", | |
"command": "workbench.action.closeFolder" | |
}, | |
{ | |
"key": "cmd+k f", | |
"command": "-workbench.action.closeFolder" | |
}, | |
{ | |
"key": "cmd+.", | |
"command": "-problems.action.showQuickFixes", | |
"when": "problemFocus" | |
}, | |
{ | |
"key": "cmd+.", | |
"command": "-settings.action.editFocusedSetting", | |
"when": "inSettingsSearch" | |
}, | |
{ | |
"key": "cmd+.", | |
"command": "-editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "cmd+.", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+`", | |
"command": "-workbench.action.terminal.toggleTerminal" | |
} | |
] |
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
{ | |
"debug.internalConsoleOptions": "neverOpen", | |
"debug.toolBarLocation": "docked", | |
"editor.detectIndentation": false, | |
"editor.insertSpaces": false, | |
"editor.fontSize": 13, | |
"editor.formatOnSaveTimeout": 3000, | |
"editor.tokenColorCustomizations": { | |
"comments": "#999999" | |
}, | |
"eslint.alwaysShowStatus": true, | |
"eslint.packageManager": "npm", | |
"files.autoSave": "onFocusChange", | |
"files.exclude": { | |
"**/.idea": true | |
}, | |
"files.insertFinalNewline": true, | |
"files.trimTrailingWhitespace": true, | |
"launch": { | |
"configurations": [ | |
{ | |
"name": "Local", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
"pathMappings": { | |
"/app/public": "${workspaceFolder}", | |
} | |
}, | |
{ | |
"name": "Built-in PHP Server", | |
"type": "php", | |
"request": "launch", | |
"port": 9000 | |
} | |
], | |
}, | |
"material-icon-theme.hidesExplorerArrows": true, | |
"material-icon-theme.languages.associations": { | |
"php": "php_elephant" | |
}, | |
"php.suggest.basic": false, | |
"phpcbf.enable": true, | |
"phpcbf.executablePath": "/Users/wpscholar/.composer/vendor/bin/phpcbf", | |
"phpcbf.documentFormattingProvider": true, | |
"phpcbf.standard": "WPScholar", | |
"phpcs.composerJsonPath": "/Users/wpscholar/.composer/composer.json", | |
"phpcs.executablePath": "/Users/wpscholar/.composer/vendor/bin/phpcs", | |
"phpcs.standard": "WPScholar", | |
"sync.autoUpload": true, | |
"sync.gist": "8515a53e28f408a489376b014ecf3be6", | |
"sync.quietSync": true, | |
"sync.removeExtensions": false, | |
"window.nativeFullScreen": false, | |
"window.zoomLevel": 1, | |
"workbench.colorTheme": "Default Light+", | |
"workbench.editor.highlightModifiedTabs": true, | |
"workbench.iconTheme": "material-icon-theme", | |
"[php]": { | |
"editor.defaultFormatter": "persoderlind.vscode-phpcbf" | |
}, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
} | |
} |
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
{ | |
// See: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax | |
"PHP_public_function": { | |
"scope": "php", | |
"prefix": "pubf", | |
"body": [ | |
"public function $1 ( $2 ) {", | |
"", | |
" $0", | |
"", | |
"}", | |
], | |
"description": "Add a public PHP function." | |
}, | |
"PHP_class": { | |
"scope": "php", | |
"prefix": "phpclass", | |
"body": [ | |
"/**", | |
" * ${TM_FILENAME/\\.php//}", | |
" *", | |
" * @package $1", | |
" */", | |
"class ${TM_FILENAME/\\.php//} $2{", | |
"", | |
" $0", | |
"", | |
"}", | |
], | |
"description": "Add a PHP class." | |
}, | |
"PHP_file_doc_comment": { | |
"scope": "php", | |
"prefix": "filedoc", | |
"body": [ | |
"/**", | |
" * $1", | |
" *", | |
" * @package $2", | |
" */", | |
"", | |
"$0", | |
], | |
"description": "Add a PHP file doc comment." | |
}, | |
"WP_html_e": { | |
"scope": "html", | |
"prefix": "_e", | |
"body": "<?php esc_html_e( '${TM_SELECTED_TEXT}', '${1:text-domain}' ); ?>", | |
"description": "Translate and escape a text string in WordPress" | |
}, | |
"WP_php_esc_html": { | |
"scope": "php", | |
"prefix": "esc_html", | |
"body": "esc_html_e( '${1:text}', '${2:text-domain}' ); ?>", | |
"description": "Translate and escape a text string in WordPress" | |
}, | |
"WP_plugin_headers": { | |
"scope": "php", | |
"prefix": "pluginheaders", | |
"body": [ | |
"/*", | |
" * Plugin Name: $1", | |
" * Plugin URI: $2", | |
" * Description: $3", | |
" * Version: ${4:1.0}", | |
" * Author: ${5:Micah Wood}", | |
" * Author URI: ${6:https://wpscholar.com}", | |
" * License: GPL2", | |
" * License URI: https://www.gnu.org/licenses/gpl-2.0.html", | |
" * Text Domain: ${7:${TM_DIRECTORY/(.*?)([^\\/]*)$/$2/}}", | |
" * Domain Path: /languages", | |
" */", | |
"", | |
"$0", | |
], | |
"description": "Add WordPress plugin headers" | |
}, | |
"WP_register_post_type": { | |
"scope": "php", | |
"prefix": "register_post_type", | |
"body": [ | |
"register_post_type(", | |
" '$1',", | |
" array(", | |
" 'label' => esc_html__( '${3/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'labels' => array(", | |
" 'name' => esc_html_x( '${3/(.*)/${1:/capitalize}/}', 'post type general name', '$4' ),", | |
" 'singular_name' => esc_html_x( '${2/(.*)/${1:/capitalize}/}', 'post type singular name', '$4' ),", | |
" 'add_new' => esc_html_x( 'Add New', '${2/(.*)/${1:/downcase}/}', '$4' ),", | |
" 'add_new_item' => esc_html__( 'Add New ${2/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'edit_item' => esc_html__( 'Edit ${2/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'new_item' => esc_html__( 'New ${2/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'view_item' => esc_html__( 'View ${2/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'view_items' => esc_html__( 'View ${3/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'search_items' => esc_html__( 'Search ${3/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'not_found' => esc_html__( 'No ${3/(.*)/${1:/downcase}/} found.', '$4' ),", | |
" 'not_found_in_trash' => esc_html__( 'No ${3/(.*)/${1:/downcase}/} found in Trash.', '$4' ),", | |
" 'parent_item_colon' => esc_html__( 'Parent ${2/(.*)/${1:/capitalize}/}:', '$4' ), // Hierarchical only", | |
" 'all_items' => esc_html__( 'All ${3/(.*)/${1:/capitalize}/}', '$4' ),", | |
" 'archives' => esc_html__( '${2/(.*)/${1:/capitalize}/} Archives', '$4' ),", | |
" 'attributes' => esc_html__( '${2/(.*)/${1:/capitalize}/} Attributes', '$4' ), // Post type must support 'page-attributes'", | |
" 'insert_into_item' => esc_html__( 'Insert into ${2/(.*)/${1:/downcase}/}', '$4' ),", | |
" 'upload_to_this_item' => esc_html__( 'Uploaded to this ${2/(.*)/${1:/downcase}/}', '$4' ),", | |
" 'featured_image' => esc_html__( 'Featured Image', '$4' ),", | |
" 'set_featured_image' => esc_html__( 'Set featured image', '$4' ),", | |
" 'remove_featured_image' => esc_html__( 'Remove featured image', '$4' ),", | |
" 'use_featured_image' => esc_html__( 'Use featured image', '$4' ),", | |
" 'menu_name' => esc_html_x( '${3/(.*)/${1:/capitalize}/}', 'admin menu', '$4' ), // Default is value of 'name'", | |
" 'filter_items_list' => esc_html__( 'Filter ${3/(.*)/${1:/downcase}/} list', '$4' ),", | |
" 'items_list_navigation' => esc_html__( '${3/(.*)/${1:/capitalize}/} list navigation', '$4' ),", | |
" 'items_list' => esc_html__( '${3/(.*)/${1:/capitalize}/} list', '$4' ),", | |
" 'name_admin_bar' => esc_html_x( '${2/(.*)/${1:/capitalize}/}', 'add new on admin bar', '$4' ), // Defaults to `singular_name`", | |
" ),", | |
" 'description' => esc_html__( '$5', '$4' ),", | |
" 'public' => true,", | |
" 'hierarchical' => false,", | |
" 'has_archive' => true,", | |
" 'exclude_from_search' => false, // Default is opposite of 'public'", | |
" 'publicly_queryable' => true, // Default is value of 'public'", | |
" 'show_ui' => true, // Default is value of 'public'", | |
" 'show_in_nav_menus' => true, // Default is value of 'public'", | |
" 'show_in_menu' => true, // Default is value of 'show_ui'", | |
" 'show_in_admin_bar' => true, // Default is value of 'show_in_menu'", | |
" 'menu_position' => null, // Integer (optional)", | |
" 'menu_icon' => 'dashicons-admin-post',", | |
" 'can_export' => true, // Default is true", | |
" 'delete_with_user' => false,", | |
" 'show_in_rest' => false,", | |
" 'rest_base' => '${3/(.*)/${1:/downcase}/}',", | |
" 'rewrite' => array(", | |
" 'slug' => '${3/(.*)/${1:/downcase}/}',", | |
" 'with_front' => false,", | |
" ),", | |
" 'supports' => array(", | |
" 'title',", | |
" 'editor',", | |
" 'author',", | |
" 'thumbnail',", | |
" 'excerpt',", | |
" 'trackbacks',", | |
" 'custom-fields',", | |
" 'comments',", | |
" 'revisions',", | |
" 'page-attributes',", | |
" 'post-formats',", | |
" ),", | |
" 'taxonomies' => array(), // Optional", | |
" )", | |
");" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup VS Code:
/Users/wpscholar
with the path to your user folder and replace instances ofMicah Wood
andwpscholar.com
)Setup Debugging:
VSCODE
public
directory.Setup WordPress PHP Coding Standards:
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
.composer global require wpscholar/phpcs-standards-wpscholar
)Setup WordPress JS Coding Standards:
npm install -g eslint-config-wordpess
.eslintrc.json
file in your global user folder. Should contain{"extends": "wordpress"}
.