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 // Only copy if required! | |
/** | |
* Custom code to display only the "next status" status for `orders_manager` role in the WooCommerce | |
* edit order screen - status selection, in order to keep to a specific order workflow. | |
*/ | |
function hide_specific_order_statuses_for_user_role() { | |
global $post; |
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
# TO BE RUN AFTER react-native init <project> | |
# Install eslint, babel and airbnb style guide | |
yarn add install eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y babel-eslint eslint-plugin-import eslint-import-resolver-babel-module babel-plugin-module-resolver babel-plugin-transform-object-rest-spread --dev | |
# Install chai, enzyme, husky, prettier-eslint, lint-stages | |
yarn add chai eslint-plugin-chai-friendly enzyme enzyme-adapter-react-16 husky lint-staged prettier-eslint --dev | |
# Install e2e test modules | |
yarn add selenium-standalone wdio-dot-reporter wdio-mocha-framework wdio-selenium-standalone-service --dev | |
./node_modules/.bin/eslint --init | |
cat >.eslintrc.json <<EOF | |
{ |