Site logo

Archived topic

Change ownership of an element

3 replies · Started by George on April 13, 2021

Viewing posts 1–4 of 4

Is there a way to change ownership of a GP element somehow? Basically, I want to change the author of one of the right side block elements and I can't find an author metabox to do it.

Hi there,

You could try this:

add_filter( 'register_post_type_args', function( $args, $post_type ) {
    if ( 'gp_elements' === $post_type ) {
        $args['supports'][] = 'author';
    }

    return $args;
}, 10, 2 );

Thanks, Tom!

No problem :)

This archived topic is closed to new replies.