Changes between Initial Version and Version 1 of Ticket #20046, comment 5
- Timestamp:
- 05/22/2014 08:35:50 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20046, comment 5
initial v1 5 5 {{{ 6 6 #!php 7 <?php 7 8 add_action( 'init', function() { 8 9 register_taxonomy_for_object_type( 'category', 'attachment' ); … … 14 15 {{{ 15 16 #!php 17 <?php 16 18 wp_insert_attachment( 17 19 array( 'post_status' => 'publish',