Last active
January 20, 2025 20:31
-
-
Save audrasjb/702ed9af40e0d819f946af43debe4914 to your computer and use it in GitHub Desktop.
Playground snippet to run Yoast reading time custom function
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", | |
"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