Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: import_post_meta

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
507           do_action('import_post_added', $post_id);
508           print "</li>\n";
509      }
510
511      function process_post_meta($post_id, $key, $value) {
512           // the filter can return false to skip a particular metadata key
513           $_key = apply_filters('import_post_meta_key', $key);
514           if ( $_key ) {
515                add_post_meta( $post_id, $_key, $value );
516                do_action('import_post_meta', $post_id, $_key, $value);
517           }
518      }
519
520      function process_attachment($postdata, $remote_url) {
521           if ($this->fetch_attachments and $remote_url) {
522                printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) );
523                $upload = $this->fetch_remote_file($postdata, $remote_url);
524                if ( is_wp_error($upload) ) {
525                     printf( __('Remote file error: %s'), htmlspecialchars($upload->get_error_message()) );