export_wp
Action HookDescription
Fires at the beginning of an export, before any headers are sent.Hook Information
File Location |
wp-admin/includes/export.php
View on GitHub
|
Hook Type | Action |
Line Number | 77 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$args
|
An array of export arguments. |
Usage Examples
Basic Usage
<?php
// Hook into export_wp
add_action('export_wp', 'my_custom_function', 10, 1);
function my_custom_function($args) {
// Your custom code here
}
Source Code Context
wp-admin/includes/export.php:77
- How this hook is used in WordPress core
<?php
72 *
73 * @since 2.3.0
74 *
75 * @param array $args An array of export arguments.
76 */
77 do_action( 'export_wp', $args );
78
79 $sitename = sanitize_key( get_bloginfo( 'name' ) );
80 if ( ! empty( $sitename ) ) {
81 $sitename .= '.';
82 }
PHP Documentation
<?php
/**
* Fires at the beginning of an export, before any headers are sent.
*
* @since 2.3.0
*
* @param array $args An array of export arguments.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/includes/export.php
Related Hooks
Related hooks will be displayed here in future updates.