corvée(dépendances) ajoute Carbon Fields
This commit is contained in:
parent
135cc65eed
commit
62368587e5
459 changed files with 72750 additions and 26 deletions
13
web/vendor/htmlburger/carbon-fields/packages/metaboxes/fields/sidebar/index.js
vendored
Normal file
13
web/vendor/htmlburger/carbon-fields/packages/metaboxes/fields/sidebar/index.js
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* External dependencies.
|
||||
*/
|
||||
import { withDispatch } from '@wordpress/data';
|
||||
import { addFilter } from '@wordpress/hooks';
|
||||
|
||||
addFilter( 'carbon-fields.sidebar.metabox', 'carbon-fields/metaboxes', withDispatch( ( dispatch ) => {
|
||||
const { receiveSidebar } = dispatch( 'carbon-fields/metaboxes' );
|
||||
|
||||
return {
|
||||
onAdded: receiveSidebar
|
||||
};
|
||||
} ) );
|
||||
Loading…
Add table
Add a link
Reference in a new issue