Hi there,
If your user has the edit_theme_options
capability they should have access by default.
However, that thread came to this conclusion as a way to allow editors to have access to Elements:
/* Add Access for Editor to GP Elements
------------------------------------------*/
add_filter( 'register_post_type_args', function( $args, $post_type ) {
if ( 'gp_elements' === $post_type ) {
$args['capability_type'] = 'post';
}
return $args;
}, 10, 2 );
/* Move Elements to Top Level Link to Allow Access
------------------------------------------*/
add_filter( 'register_post_type_args', function( $args, $post_type ) {
if ( 'gp_elements' === $post_type ) {
$args['show_in_menu'] = true;
}
return $args;
}, 10, 2 );
add_filter( 'generate_elements_metabox_ajax_allow_editors', '__return_true' );
Let me know if that helps or not 🙂