WordPress.org

Plugin Directory

Opened 7 years ago

Last modified 7 years ago

#1271 new enhancement

Add support for custom post types

Reported by: erezie Owned by:
Priority: normal Severity: normal
Plugin: not-listed Keywords: custom post typeson publish
Cc:

Description

Would be good to have support for custom post types.

Here is the code that i use in my theme to enable it

if(function_exists('aktt_notify_twitter'))
{
  foreach($wp_post_types as $type => args)
  {
    if(!$type->_builtin)
    {
      add_action("publish_" . $type, 'aktt_notify_twitter');
    }
  }
}

Ideally, the backend should provide a list of all the custom post types with a check box next to it. Checking one would enable the twitting of custom posts upon publishing.

Change History (1)

comment:1 @erezie7 years ago

  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.