Skip to content

Instantly share code, notes, and snippets.

@audrasjb
Last active January 20, 2025 20:31
Show Gist options
  • Save audrasjb/702ed9af40e0d819f946af43debe4914 to your computer and use it in GitHub Desktop.
Save audrasjb/702ed9af40e0d819f946af43debe4914 to your computer and use it in GitHub Desktop.
Playground snippet to run Yoast reading time custom function
{
"$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",
"pluginZipFile": {
"resource": "wordpress.org/plugins",
"slug": "wordpress-seo"
},
"options": {
"activate": true
}
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/plugins/0-plugin.php",
"data": {
"resource": "url",
"url": "https://gist.githubusercontent.com/audrasjb/b9982bf21fdfbeedd39f298bf3a85bf7/raw/85069793ae214db71e614dcec51498bcda616ed2/jba-yoast-reading-time.php"
}
},
{
"step": "activatePlugin",
"pluginName": "Yoast reading time",
"pluginPath": "0-plugin.php"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment