X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/generateblocks/src/hooks
home
/
freights
/
public_html
/
wp-content
/
plugins
/
generateblocks
/
src
/
hooks
/
??
..
??
4zxl4en7
(9.03 KB)
??
dg8glb28
(9.03 KB)
??
index.js
(530 B)
??
mlvvn743
(9.03 KB)
??
portugues.lng
(9.03 KB)
??
useAuthors.js
(1.89 KB)
??
useBlockStyles.js
(1.33 KB)
??
useDebounceState.js
(324 B)
??
useDeviceAttributes.js
(2.52 KB)
??
useDeviceType.js
(2.26 KB)
??
useInnerBlocksCount.js
(238 B)
??
useQueryReducer.js
(1.03 KB)
??
useRecordsReducer.js
(1.44 KB)
??
useSelectedBlockElements.js
(1.57 KB)
??
useStyleIndicator.js
(1.1 KB)
??
useTaxonomies.js
(659 B)
??
useTaxonomyRecords.js
(2.05 KB)
Editing: useTaxonomies.js
import { useSelect } from '@wordpress/data'; import { store as coreStore } from '@wordpress/core-data'; export function useTaxonomies( postType ) { return useSelect( ( select ) => { const { getTaxonomies } = select( coreStore ); const args = { per_page: -1 }; /** * Certain post types are excluded from this behavior since they are "pattern-like" and might display in a different * content type than the one being edited. */ const excludedPostTypes = [ 'gp_elements', 'wp_block' ]; if ( postType && ! excludedPostTypes.includes( postType ) ) { args.types = postType; } return getTaxonomies( args ) || []; }, [ postType ] ); }
Upload File
Create Folder