Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 {
...
public function register() : void {
\add_action(
'enqueue_block_editor_assets',
array( $this , 'enqueue_styles' ),
999
);
\add_action(
'enqueue_block_editor_assets',
array( $this , 'enqueue_scripts'),
999
);
\add_action(
'init',
array( $this , 'register_meta_fields' ),
1
);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment