First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
| <?php | |
| /* | |
| Plugin Name: WDS Hello World | |
| Plugin URI: https://webdevstudios.com/ | |
| Description: Teaching the basics of WP-CLI | |
| Author: Web Dev Studios | |
| Version: 1.0.0 | |
| Author URI: https://webdevstudios.com/ | |
| */ | |
| class WDS_CLI { |
| <?php | |
| /** | |
| * Populate ACF select field options with Gravity Forms forms | |
| */ | |
| function acf_populate_gf_forms_ids( $field ) { | |
| if ( class_exists( 'GFFormsModel' ) ) { | |
| $choices = []; | |
| foreach ( \GFFormsModel::get_forms() as $form ) { | |
| $choices[ $form->id ] = $form->title; |
| #!/usr/bin/env bash | |
| # Related to WP CLI as single site, check following link | |
| # @see https://gist.github.com/MaximeCulea/dbd5835a01d2b4e6a6544919db3f26a0 | |
| # All wp cli comands will be declared both (as much as possible) : | |
| # - with xargs (not all servers support xargs) | |
| # - more native shell syntax "for in" | |
| # WP Crons MS |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
| /* | |
| * When our date picker loads, we want to modify some of picker settings. | |
| * | |
| * We want to: | |
| * 1) Modify our month labels with a different string. | |
| * 2) Disable specific dates so that they can't be selected. | |
| * | |
| * | |
| * This object will listen to date pickers as they initialize so that we can modify settings. | |
| */ |
| <?php | |
| /* | |
| Plugin Name: UTF8mb4-convert | |
| Version: 1.0 | |
| */ | |
| function update_db_to_utf8mb4() { | |
| if ( ! isset( $_GET['update-utf8bm4'] ) ) { | |
| return; | |
| } |
| <?php | |
| namespace ShyimCron; | |
| use Shopware\Components\Plugin; | |
| use Shopware\Components\Plugin\Context\InstallContext; | |
| use Shopware\Components\Plugin\Context\UninstallContext; | |
| class ShyimCron extends Plugin { | |
| public static function getSubscribedEvents() |
| <?php | |
| /** | |
| * Enable unfiltered_html capability for Editors. | |
| * | |
| * @param array $caps The user's capabilities. | |
| * @param string $cap Capability name. | |
| * @param int $user_id The user ID. | |
| * @return array $caps The user's capabilities, with 'unfiltered_html' potentially added. | |
| */ |
Uses a (basically free) Amazon Dash Button to play/pause your iTunes music over AirPlay speakers.
Requires OS X and an AirPlay compatible speaker (e.g. Apple TV or any speaker hooked up to AirPort Express).
node dash_buttons.js