-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmyguten.js
38 lines (32 loc) · 824 Bytes
/
myguten.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
jQuery( document ).ready( function( $ ) {
//
//wp.blocks.registerBlockStyle( 'core/image', {
// name: 'fancy-quote',
// label: 'Fancy Quote'
//} );
function addWpCCsearch(settings, name){
if ( name == 'core/image' ) {
console.log(settings);
return settings;
}
}
wp.hooks.addFilter('blocks.registerBlockType','ls-wp-ccsearch/image-block',addWpCCsearch);
//
//function addListBlockClassName( settings, name ) {
// if ( name !== 'core/list' ) {
// return settings;
// }
//
// return lodash.assign( {}, settings, {
// supports: lodash.assign( {}, settings.supports, {
// className: true
// } ),
// } );
//}
//
//wp.hooks.addFilter(
// 'blocks.registerBlockType',
// 'my-plugin/class-names/list-block',
// addListBlockClassName
//);
} );