Skip to content
This repository was archived by the owner on Oct 23, 2021. It is now read-only.
This repository was archived by the owner on Oct 23, 2021. It is now read-only.

add_meta_box not working for attachment post type #64

@marcelo2605

Description

@marcelo2605

I'm using this code to create a text field for attachment post type:

$foo = new \Super_Custom_Post_Meta( 'attachment' );
$foo->add_meta_box( array(
        'id' => 'book',
        'context' => 'normal',
        'fields' => array(
            'usuario' => array( 'label' => '', 'type' => 'text')
        )
    ));

The input appear on attachment page, but the values are not saved on db.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions