This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function the_field_url( $selector, $post_id=0, $format_value=true ) { | |
echo esc_url( get_field( $selector, $post_id, $format_value ) ); | |
} | |
function the_field_url_raw( $selector, $post_id=0, $format_value=true ) { | |
echo esc_url_raw( get_field( $selector, $post_id, $format_value ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { apiFetch } = wp; | |
const { registerStore, withSelect } = wp.data; | |
const actions = { | |
setUserRoles( userRoles ) { | |
return { | |
type: 'SET_USER_ROLES', | |
userRoles, | |
}; | |
}, |