Site logo

[Resolved] Change ownership of an element

Home Forums Support [Resolved] Change ownership of an element

Home Forums Support Change ownership of an element

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1732312
    George

    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.

    #1732868
    Tom
    Lead Developer
    Lead Developer

    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 );
    #1732893
    George

    Thanks, Tom!

    #1733070
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.