WordPress.org

Ready to get started?Download WordPress

Forums

CPT Descriptions
Feature Request: Filter Post Types (3 posts)

  1. mrwweb
    Member
    Posted 1 year ago #

    First off, thanks for building this plugin. I was about to break down and build something similar myself, so I'm excited to see you went ahead and did it.

    And the reason for posting: It would be great if you could add a simple filter to the $post_types array you generate so I could exclude certain post types that I didn't want descriptions for. For now, I'll probably just go and remove the menu page, but it would be nice to just cut the description off at the source. Alternately, I think you could probably allow devs to add another argument to post types—something like exclude_cpt_descriptions to tell the plugin not to generate the description.

    (And one more small feature idea. I haven't thought this one completely through, but it might make sense to autopopulate the field with the description parameter from register_post_type. It might though. I don't know how most people use that in practice.)

    http://wordpress.org/extend/plugins/cpt-descriptions/

  2. mrwweb
    Member
    Posted 1 year ago #

    ...and while I'm at it. Throwing in a link to the "View {$post_type} archive" link on the description editing page for each post type would be a nice little shortcut :)

  3. mrwweb
    Member
    Posted 1 year ago #

    Moving these to GitHub for potential future pull requests by me (still learning how to do that...) or others and better tracking in general.

    Filter: https://github.com/vanpop/CPT-Descriptions/issues/4
    Admin Menu: https://github.com/vanpop/CPT-Descriptions/issues/5

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic