- Add your query block, and give it a class of
is-style-carousel
. - Add the code from block-editor.php somewhere such as your child theme functions.php file.
- Configure Splide options in the
query_carousel_block_init()
function.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Preload fonts. | |
* | |
* @return void | |
*/ | |
function preload_fonts() { | |
$fonts = \WP_Font_Face_Resolver::get_fonts_from_theme_json(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add a noindex, follow robots meta tag to hidden products. | |
* | |
* @param string $robots The robots meta tag. | |
* @return string | |
*/ | |
add_filter( | |
'wpseo_robots', | |
function ( $robots ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Force Two Factor | |
* Description: Force Two Factor Authentication for some users. | |
* Requires at least: 6.0.2 | |
* Requires PHP: 7.0 | |
* Version: 0.0.0-development | |
* Author: CloudCatch LLC | |
* Author URI: https://cloudcatch.io | |
* License: GPL v2 or later |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Part: Blog | |
* | |
* @package CloudCatch\Sample | |
*/ | |
use function CloudCatch\Sample\get_post_icon; | |
$sample_blog_categories = wp_get_post_terms( get_the_ID(), 'category', array( 'fields' => 'names' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sandbox.local | |
recipe: wordpress | |
config: | |
php: 8.2 | |
webroot: www | |
services: | |
database: | |
type: mariadb | |
appserver: | |
xdebug: true |
- Install WSL
- Install your preferred WSL Linux Distro vom Microsoft Store. In my case I used Ubuntu 20.04.
- Install Docker for Windows
- Enable Docker WSL2 Integration
- Install Lando inside WSL
wget https://github.com/lando/lando/releases/download/v3.6.0/lando-x64-v3.6.0.deb
dpkg -i --ignore-depends=docker-ce lando-x64-v3.6.0.deb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add data attributes to the query block to describe the block query. | |
* | |
* @param string $block_content Default query content. | |
* @param array $block Parsed block. | |
* @return string | |
*/ | |
function query_render_block( $block_content, $block ) { | |
global $wp_query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var waves = document.querySelectorAll('[data-wave]'); | |
var devicePixelRatio = window.devicePixelRatio || 1; | |
waves.forEach(function (wave) { | |
var fillColor = wave.getAttribute('data-fill') || '#f0f'; | |
var clipDirection = wave.getAttribute('data-clip-direction') || 'top'; | |
var containerWrapper = document.createElement('div'); | |
containerWrapper.classList = 'containerWrapper'; | |
var container = document.createElement('div'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WC Cart PDF template | |
* | |
* @package wc-cart-pdf | |
*/ | |
/** | |
* Before template hook | |
* |
NewerOlder