plugins – How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?

Question

I have set a custom post type in plugin setting’s page named “custompost_type”. How do I retrive the value of the setting and pass it in getEntityRecords in gutenberg block??

const data = useSelect((select) => {
return select('core').getEntityRecords('postType', 'custompost_type');
});

0
Mangesh Yadav 2 months 2022-12-08T12:16:48-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse