wxr_export_skip_commentmeta
Filter HookDescription
Filters whether to selectively skip comment meta used for WXR exports. Returning a truthy value from the filter will skip the current meta object from being exported.Hook Information
| File Location | wp-admin/includes/export.phpView on GitHub | 
| Hook Type | Filter | 
| Line Number | 712 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| bool | $skip | Whether to skip the current comment meta. Default false. | 
| string | $meta_key | Current meta key. | 
| object | $meta | Current meta object. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into wxr_export_skip_commentmeta
add_filter('wxr_export_skip_commentmeta', 'my_custom_filter', 10, 3);
function my_custom_filter($skip, $meta_key, $meta) {
    // Your custom filtering logic here
    return $skip;
}
Source Code Context
                        wp-admin/includes/export.php:712
                        - How this hook is used in WordPress core
                    
                    <?php
 707  						 *
 708  						 * @param bool   $skip     Whether to skip the current comment meta. Default false.
 709  						 * @param string $meta_key Current meta key.
 710  						 * @param object $meta     Current meta object.
 711  						 */
 712  						if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {
 713  							continue;
 714  						}
 715  						?>
 716  	<wp:commentmeta>
 717  	<wp:meta_key><?php echo wxr_cdata( $meta->meta_key ); ?></wp:meta_key>
PHP Documentation
<?php
/**
						 * Filters whether to selectively skip comment meta used for WXR exports.
						 *
						 * Returning a truthy value from 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.
						 */
                        Quick Info
                    
                    - Hook Type: Filter
- Parameters: 3
- File: wp-admin/includes/export.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
