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: Remove HTML | |
* Description: batch Remove HTML from post_content | |
* Author: Marc Gratch | |
* Author URI: http://marcgratch.com | |
* Version: 0.1.0 | |
*/ | |
function rh_get_all_ids(){ | |
$args = array ('post_type' => array('post','page'), 'fields' => 'ids', 'posts_per_page' => -1); |
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
{# ================================================================== #} | |
{# Responsive Image Macro | |
{# ================================================================== #} | |
{# | |
Macro to centralize the markup and config for responsive images. | |
Based on an article by Marion Newlevant (@marionnewlevant) and | |
adapted for the Lazysizes plugin. Read more: | |
https://straightupcraft.com/articles/responsive-images-with-twig-macros |
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
/* | |
Usage: | |
let person = { | |
name: "Harrison", | |
age: 200, | |
address: { | |
street: "12345 Street", | |
zip: "abcde" | |
}, |
OlderNewer