First, clone the repository of the project :
mkdir /tmp/project-name
git clone ...
Create a packages.json file in the root, containing the following :
| $cliDir = "c:\wp-cli\" | |
| mkdir $cliDir | |
| $cliFilePath = $cliDir + "wp-cli.phar"; | |
| (New-Object System.Net.WebClient).DownloadFile("https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar", $cliFilePath) | |
| $batchFile = $cliDir + "wp.bat"; | |
| Set-Content $batchFile "@ECHO OFF","php `"c:/wp-cli/wp-cli.phar`" %*" | |
| #Need to set path here |
| $cliDir = "c:\wp-cli\" | |
| mkdir $cliDir | |
| $cliFilePath = $cliDir + "wp-cli.phar"; | |
| (New-Object System.Net.WebClient).DownloadFile("https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar", $cliFilePath) | |
| $batchFile = $cliDir + "wp.bat"; | |
| Set-Content $batchFile "@ECHO OFF","php `"c:/wp-cli/wp-cli.phar`" %*" | |
| #Need to set path here |
First, clone the repository of the project :
mkdir /tmp/project-name
git clone ...
Create a packages.json file in the root, containing the following :
| if( !function_exists( 'the_field' ) && empty( get_option( 'my-acf-notice-dismissed' ) ) ) { | |
| add_action( 'admin_notices', 'my_acf_admin_notice' ); | |
| } | |
| function my_acf_admin_notice() { | |
| ?> | |
| <div class="notice error my-acf-notice is-dismissible" > | |
| <p><?php _e( 'ACF is not necessary for this plugin, but it will make your experience better, install it now!', 'my-text-domain' ); ?></p> | |
| </div> |
| if( !function_exists( 'the_field' ) && empty( get_option( 'my-acf-notice-dismissed' ) ) ) { | |
| add_action( 'admin_notices', 'my_acf_admin_notice' ); | |
| } | |
| function my_acf_admin_notice() { | |
| ?> | |
| <div class="notice error my-acf-notice is-dismissible" > | |
| <p><?php _e( 'ACF is not necessary for this plugin, but it will make your experience better, install it now!', 'my-text-domain' ); ?></p> | |
| </div> |
MailHog: MailHog.exe autorun
MailHog Admin: http://localhost:8025 autorun
| <?php | |
| /* | |
| Plugin Name: Add Item Meta & Order Meta for your WooComerce order | |
| Description: A simple demo plugin on how to add add cart item meta & order item meta for your WooComerce order. | |
| Author: Bhavik Kiri | |
| Version: 1.0 | |
| */ | |
| add_action( 'woocommerce_before_add_to_cart_button', 'add_fields_before_add_to_cart' ); |
| <?php | |
| error_reporting(E_ALL); | |
| /* Get the port for the service. */ | |
| $port = "9100"; | |
| /* Get the IP address for the target host. */ | |
| $host = "172.17.144.89"; | |
| /* construct the label */ |
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
| define('DISALLOW_FILE_MODS', true); |