Slides:
https://docs.google.com/presentation/d/1H7rntjtk-fqY1KqY6Djm-o9AWSTccfNIgGZpFhjUjIo/edit?usp=sharing
{ | |
"scm.inputFontSize": 14, | |
"debug.console.fontSize": 14, | |
"markdown.preview.fontSize": 14, | |
"editor.codeLensFontSize": 14, | |
"editor.suggestFontSize": 14, | |
"editor.fontSize": 14, | |
"files.autoSave": "afterDelay", | |
"editor.minimap.enabled": false, | |
"workbench.startupEditor": "none", |
/** | |
* Get Image URL. | |
* | |
* @param integer $id ID of the image. | |
* @param string $args The image arguments. | |
* | |
* @return string The image URL. | |
*/ | |
function zawp_get_image_url( $id, $args ) { | |
// If image returned is an array, then return it's 'ID'. |
addFilter( | |
"editor.BlockEdit", | |
"wpdev/is-post-link", | |
( BlockEdit ) => { | |
return (props) => { | |
if (props.name !== "core/button") { | |
return <BlockEdit {...props} />; | |
} | |
return ( |
{ | |
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
"steps": [ | |
{ | |
"step": "setSiteOptions", | |
"options": { | |
"blogname": "LearnPress", | |
"blogdescription": "My testing LearnPress site" | |
} | |
}, |
<?php | |
/** | |
* Plugin Name: Bookstore | |
* Description: A plugin to manage books | |
* Version: 1.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly | |
} |
<?php | |
/** | |
* Plugin Name: WP Learn Compatibility | |
* Description: Learn to test a plugin for PHP Version Compatibility | |
* Version: 1.0.1 | |
*/ | |
/** | |
* Posts fetcher class | |
*/ |
export SLACK_DEVELOPER_MENU=true
open /Applications/Slack.app
cmd + opt + I
keyboard combination to open dev tools<?php | |
/** | |
* Plugin Name: WP Learn HTTP API | |
* Description: Learning about the WP HTTP API | |
* Version: 0.0.1 | |
*/ | |
/** | |
* Create an admin page to show the API data | |
*/ |