Forums

Magic Fields 2
Support for other plugin panels in 'suppots' section (2 posts)

  1. dannyobrian
    Member
    Posted 1 year ago #

    The post type form currently only supports a hard coded list of options.

    Are there plans for the 'supports' options to support 3rd party plugins in this section?

    I'm trying to get this to work the the Open Graph in post and pages plug-in but the magic field removes it from the edit post screen.

    http://wordpress.org/extend/plugins/magic-fields-2/

  2. hunk
    Member
    Plugin Author

    Posted 1 year ago #

    Hi the problem is that wordpress does not have a function to all types of supports available.

    WordPress store the support in a global var ( $_wp_post_type_features ) something like this

    array(
      [post] => Array
            (
                [title] => 1
                [editor] => 1
                [author] => 1
                [thumbnail] => 1
                [excerpt] => 1
                [trackbacks] => 1
                [custom-fields] => 1
                [comments] => 1
                [revisions] => 1
                [post-formats] => 1
            )
    
        [page] => Array
            (
                [title] => 1
                [editor] => 1
                [author] => 1
                [thumbnail] => 1
                [page-attributes] => 1
                [custom-fields] => 1
                [comments] => 1
                [revisions] => 1
            )
    );

    You can add support for add_meta_box function

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic