wphooks.info - wxr_export_skip_commentmeta

wxr_export_skip_commentmeta

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/export.php:
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
						 *
						 * Returning a truthy value to the filter will skip the current meta
						 * object from being exported.
						 *
						 * @since 4.0.0
						 *
						 * @param bool   $skip     Whether to skip the current comment meta. Default false.
						 * @param string $meta_key Current meta key.
						 * @param object $meta     Current meta object.
						 */
						if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {
							continue;
						}
						?>
	<wp:commentmeta>
	<wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key>
			<wp:meta_value><?php echo wxr_cdata( $meta->meta_value ); ?></wp:meta_value>
			</wp:commentmeta>
					<?php	endforeach; ?>
		</wp:comment>