Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active September 1, 2019 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanaf1979/9afe6a5f8c3f5579f963efc2d43f5a99 to your computer and use it in GitHub Desktop.
Save vanaf1979/9afe6a5f8c3f5579f963efc2d43f5a99 to your computer and use it in GitHub Desktop.
Gist for my tutorial "Building a Gutenberg sidebar plugin Part 1: Registering the plugin with (oop) php". https://vanaf1979.nl/making-a-gutenberg-sidebar-plugin-part-1-registering-the-plugin-with-oop-php/
<?php
class MetaTags {
private static $instance;
private static $pluginslug = 'metatags';
private $metafields = array(
'title' => 'metatags_browser_title',
'description' => 'metatags_description_field',
'robots' => 'metatags_robots_field'
);
private $dependencies = array(
'wp-plugins',
'wp-edit-post',
'wp-element',
'wp-components',
'wp-data',
'wp-dom-ready'
);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment