Skip to content

Instantly share code, notes, and snippets.

@gino0o0o
gino0o0o / filters.php
Created January 22, 2025 10:18 — forked from webprom/filters.php
WordPress Gutenberg Query Loop View More AJAX
<?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 ) {
if ( 'core/query' === $block['blockName'] ) {
@gino0o0o
gino0o0o / Swipe-Example.js
Created February 21, 2023 13:32 — forked from Tam/Swipe-Example.js
Vanilla JavaScript Swipe Detection
new Swipe(document.getElementById("gallery"), function(event, direction) {
event.preventDefault();
switch (direction) {
case "up":
// Handle Swipe Up
break;
case "down":
// Handle Swipe Down
break;
@gino0o0o
gino0o0o / semantic-commit-messages.md
Created December 30, 2020 13:19 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example