[ad_1]
[ad_2]
I'm currently building a new custom block and trying to find out what the equivalent of the following is in JavaScript.
get_option('wp_page_for_privacy_policy');
I have tried a number of options and been scouring the docs.
Most recent attempt is:
const privacyPolicy = useSelect(
useSelect((select) => select('core').getOption('wp_page_for_privacy_policy'), [])
);