Skip to content

Instantly share code, notes, and snippets.

@arwinvdv
arwinvdv / breeze-manage-wp-snippet.php
Created July 26, 2024 08:54
Change Breeze cache TTL configuration with ManageWP snippet
<?php
// Its normal that this script gives some mkdir chmod and unlink errors
// Load WordPress environment.
require 'wp-load.php';
require 'wp-content/plugins/breeze/breeze.php';
function md_change_breeze_settings()
{
@arwinvdv
arwinvdv / vue-3-simple-table.vue
Created June 24, 2021 07:39
A very simple vue 3 table
<template>
<div>
<table>
<thead>
<tr>
<th v-for="(column, index) in columns" :key="`col-${index}`" @click="sort(column.field)">{{ column.label }}</th>
</tr>
</thead>
<tbody>
<tr v-for="(row, index_row) in sortedRows" :key="'row' + index_row + uid">