Make WordPress Core

Ticket #28146: 28146.2.diff

File 28146.2.diff, 791 bytes (added by MikeHansenMe, 10 years ago)

added additional param docs

  • src/wp-admin/includes/export.php

     
    8686        // Grab a snapshot of post IDs, just in case it changes during the export.
    8787        $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" );
    8888
     89        /**
     90         * Filter exported post IDs.
     91         *
     92         * @since x.x.x
     93         *
     94         * @param array $post_ids Array of post IDs included in the export.
     95         * @param array $args     Array of arguments to determine what posts to export.
     96         */
     97        $post_ids = apply_filters( 'export_post_ids', $post_ids, $args );
     98
    8999        /*
    90100         * Get the requested terms ready, empty unless posts filtered by category
    91101         * or all content.