Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #23932, comment 4


Ignore:
Timestamp:
10/26/2014 10:54:43 PM (9 years ago)
Author:
antpb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23932, comment 4

    v1 v2  
    66}}}
    77
    8 The media panel is not determining to show it based on the array. Continuing to look into where that is linked.
     8Tested the array's output by printing it to screen. The below function (added to theme's function.php) gives the desired removal of the caption from the array but the media panel is not determining to show it based on this array. Continuing to look into where that is linked. 
     9{{{
     10add_action( 'init' , 'my_remove_post_type_support' , 10 );
     11function my_remove_post_type_support() {
     12remove_post_type_support( 'attachment', 'caption' );
     13global $_wp_post_type_features;
     14print_r($_wp_post_type_features);
     15}
     16}}}