This file contains hidden or 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: Yoast Reading Time Shortcode | |
* Description: Adds Yoast reading time post meta in a shortcode. | |
* Author: Jb Audras @ Whodunit | |
* Version: 0.1 | |
* Author URI: https://whodunit.fr | |
*/ | |
/** |
This file contains hidden or 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
{ | |
"landingPage": "/wp-admin/", | |
"login": true, | |
"plugins": [ | |
"https://jeanbaptisteaudras.com/playground/2025-core-admin-colors.zip" | |
], | |
"siteOptions": { | |
"blogname": "White Admin Scheme" | |
} | |
} |
This file contains hidden or 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
{ | |
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
"meta": { | |
"title": "Yoast reading time post meta", | |
"description": "Add Yoast reading time post meta before posts content", | |
"author": "audrasjb", | |
}, | |
"steps": [ | |
{ | |
"step": "installPlugin", |
This file contains hidden or 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: Add Yoast reading time post meta before posts content. | |
* Author: Jb Audras | |
* Version: 0.1 | |
* Author URI: https://whodunit.fr | |
*/ | |
/** | |
* Gets Yoast reading time and add it before the content. |
This file contains hidden or 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 default theme patterns. | |
* Author: Jb Audras | |
* Version: 0.1 | |
* Author URI: https://whodunit.fr | |
*/ | |
/** | |
* Unregisters default patterns from TT5. |
This file contains hidden or 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
{ | |
"landingPage": "/wp-admin/", | |
"login": true, | |
"plugins": [ | |
"https://jeanbaptisteaudras.com/plugins/who-opquast-widgets.zip" | |
], | |
"siteOptions": { | |
"blogname": "Le joli widget Opquast" | |
} | |
} |
This file contains hidden or 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 | |
/** | |
* Filters blocks to automatically add aria-label to links that open in a new tab. | |
* | |
* @param string $block_content The block content. | |
* @param array $block The full block, including name and attributes. | |
*/ | |
function who_accessible_external_links( $block_content, $block ) { | |
$blocklist = array( | |
'core/button', |
This file contains hidden or 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
/** | |
* Filters the_content to automatically add unique ID to headings. | |
* | |
* Note: Change the regex to modify the related heading levels. | |
* Defaults to levels 2 and 3. | |
*/ | |
function who_automatic_heading_ids( $content ) { | |
$pattern = "~<h(2|3)[^>]*>(.*?)</h(2|3)>~"; | |
$content = preg_replace_callback( $pattern, function ( $matches ) { | |
$title = $matches[2]; |
NewerOlder