Automate WordPress Installation with scripts

Create the project directory and get the most recent version of WordPress PROJECT=”somesitedomaincom” # you can replace all occurrences of “~/Sites” with ${BASEPATH} BASEPATH=”some/path/to/dir” # Setup site folder, replace all...

WP – Adding custom field to Woocommerce checkout page

Adding Custom Shipping And Billing Fields Adding fields is done in a similar way to overriding fields. For example, let’s add a new field to shipping fields – shipping_phone: // Hook in add_filter( ‘woocommerce_checkout_fields’ ,...

Stylize your code snippets in WP

There are quite a few options to make your code more ridable and more functional. So here it is:Code Syntax Block this is our choice. The plugin works in a very simple way. We add the CSS class “language-xxx” to our “<code>” block, where xxx...