Skip to content

Commit

Permalink
Added hook to allow extending of gutenberg editor in plugin/themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jun 15, 2017
1 parent 7045980 commit 8677e86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,5 +371,12 @@ function gutenberg_scripts_and_styles( $hook ) {
array( 'wp-components', 'wp-blocks' ),
filemtime( gutenberg_dir_path() . 'editor/build/style.css' )
);

global $hook_suffix;
/**
* Hook to allow extending of gutenberg editor in plugin/themes.
*/
do_action( 'block_enqueue_script', $hook_suffix );

}
add_action( 'admin_enqueue_scripts', 'gutenberg_scripts_and_styles' );

0 comments on commit 8677e86

Please sign in to comment.