The raw code to allow Icon Block plugin to scan a theme for icons.
Uses https://wordpress.org/plugins/icon-block/
Place svgs in the mai/icons directory.
Categories will be automatically generated from the directory structure.
Example:
The raw code to allow Icon Block plugin to scan a theme for icons.
Uses https://wordpress.org/plugins/icon-block/
Place svgs in the mai/icons directory.
Categories will be automatically generated from the directory structure.
Example:
| --- | |
| creation date: <% tp.file.creation_date() %> | |
| tags: DailyNote <% tp.file.title.split('-')[0] %> | |
| --- | |
| modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed. | |
| # <% tp.file.title %> | |
| << [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>> |
| /** | |
| * External Dependencies | |
| */ | |
| // import classnames from 'classnames'; | |
| /** | |
| * WordPress Dependencies | |
| */ | |
| import { addFilter } from '@wordpress/hooks'; | |
| import { Fragment } from '@wordpress/element'; |
| <?php | |
| /** | |
| * Run a specific workflow for a specific order. | |
| * | |
| * @param int $workflow_id | |
| * @param int $order_id | |
| * | |
| * @throws \Exception | |
| */ |
| Install Redis Support on windows by installing windows alternative: https://www.memurai.com/ | |
| Download redis php extension from https://pecl.php.net/package/redis/5.3.2/windows | |
| Go to your xampp/wamp directory, locate php/ext or php/php-version/ext folder and paste php_redis.dll file in it | |
| Edit your php.ini file and add extension=php_redis.dll line into this file | |
| Restart apache |
| <?php // do not copy this line | |
| /** | |
| * Disables opening the Terms and Conditions page in an inline form on the Checkout page. | |
| * The Terms and Conditions link will then open in a new tab/window. | |
| */ | |
| add_action( 'wp', function() { | |
| remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_checkout_privacy_policy_text', 20 ); | |
| remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content', 30 ); | |
| } ); |
| // FILE PATH: /resources/js/app.js | |
| require('./bootstrap'); | |
| // Import Service Worker Registry | |
| require('./extensions/sw-registry'); | |
| import Vue from 'vue'; | |
| ... |
| // Add any other logic here as needed. | |
| import { CacheableResponsePlugin } from 'workbox-cacheable-response/CacheableResponsePlugin'; | |
| import { CacheFirst } from 'workbox-strategies/CacheFirst'; | |
| import { createHandlerForURL } from 'workbox-precaching/createHandlerForURL'; | |
| import { ExpirationPlugin } from 'workbox-expiration/ExpirationPlugin'; | |
| import { NavigationRoute } from 'workbox-routing/NavigationRoute'; | |
| import { precacheAndRoute } from 'workbox-precaching/precacheAndRoute'; | |
| import { registerRoute } from 'workbox-routing/registerRoute'; |