These instructions shall work on Mac OS X and Linux.
Installation via Homebrew:
brew install mkvtoolnix
| #!/usr/bin/env bash | |
| # for debug output, uncomment: | |
| #set -x | |
| function help { | |
| echo "WordPress cleanup -v 0.5 2018-06-26 / peeter@zone.ee | |
| Usage: |
| <x-layout> | |
| <x-slot name="head"> | |
| <x-social-media-meta | |
| title="Blade Component Examples" | |
| description="Learn about all sorts of Blade component tips and tricks." | |
| image="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg" | |
| card="summary" | |
| /> | |
| </x-slot> |
| <form action="<?php echo site_url() ?>/wp-admin/admin-ajax.php" method="POST" id="filter"> | |
| <?php | |
| if( $terms = get_terms( 'category', 'orderby=name' ) ) : | |
| echo '<select name="categoryfilter"><option>Select category...</option>'; | |
| foreach ( $terms as $term ) : | |
| echo '<option value="' . $term->term_id . '">' . $term->name . '</option>'; | |
| endforeach; | |
| echo '</select>'; | |
| endif; |
| <?php | |
| /** | |
| * Class Custom_WC_Email | |
| */ | |
| class Custom_WC_Email { | |
| /** | |
| * Custom_WC_Email constructor. |
| /* | |
| * Example adds certain named Product Attribute fields to the product Edit screen ready for completion. | |
| * (Pre-requisite ) | |
| * This saves the Shop Admin having to add them manually. | |
| * | |
| * Why might you want to do this instead of adding Custom fields? There's plenty of nice documentation on adding custom fields | |
| * for example: http://www.remicorson.com/mastering-woocommerce-products-custom-fields/ | |
| * | |
| * Well a Product Attributes are a built in WooCommerce feature, using Terms which are a built in Wordpress feature. | |
| * - no add-ons required |
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Matteo | |
| * Date: 04/07/2018 | |
| * Time: 12:52 | |
| */ | |
| /** | |
| * Class ACFToArray |
| /** | |
| * External Dependencies | |
| */ | |
| import classnames from 'classnames'; | |
| /** | |
| * WordPress Dependencies | |
| */ | |
| const { __ } = wp.i18n; | |
| const { addFilter } = wp.hooks; |
| /* | |
| * Wrap all ACF Blocks in Disabled block to disable all links in edit view | |
| */ | |
| const { createHigherOrderComponent } = wp.compose; | |
| const { Fragment } = wp.element; | |
| import { Disabled } from '@wordpress/components'; | |
| const withDisabledCompontent = createHigherOrderComponent( ( BlockEdit ) => { | |
| return ( props ) => { |
| <?php | |
| /*----------------------------------------- | |
| REWRITE SEARCH URLS | |
| -----------------------------------------*/ | |
| // Redirect ?s=xxx to /search/xxx | |
| function redirect_search_url() | |
| { | |
| if (is_search() && !empty($_GET['s'])) { | |
| wp_redirect(home_url('/' . _x('search' /* default search slug */, 'search url slug', THEME_TEXT_DOMAIN) . '/') . urlencode(get_query_var('s'))); |
These instructions shall work on Mac OS X and Linux.
Installation via Homebrew:
brew install mkvtoolnix