WordPress.org

Ready to get started?Download WordPress

Forums

Smart WYSIWYG Blocks Of Content
Feature Request: filter to add post type support (1 post)

  1. mjdigital
    Member
    Posted 1 year ago #

    First of all I must congratulate you on an excellent plugin.

    I was just wondering if you could add a hook/filter that would allow a developer to add extra items to the "supports" array when initialising the custom post type. Basically I often use smartblocks programmatically and like to occasionally assign a featured image, custom fields or an excerpt to them. I normally add these in using another plugin (Custom Field Suite) but it would be nice to just have the option to get the smartblocks to support some other native features.

    Not a major thing for many people I assume but would be nice for me!

    To explain: I would just change line 37 in includes/class-swboc-common.php to:

    //line 37
    'supports' => apply_filters('smartblock_supports',array('title', 'editor')),

    Then we can hook in and add extra supported items.

    Thank you

    Mark

    http://wordpress.org/extend/plugins/smart-wysiwyg-blocks-of-content/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.