Definition:
function register_importer( $id, $name, $description, $callback ) {}
Register importer for WordPress.
Parameters
- string $id: Importer tag. Used to uniquely identify importer.
- string $name: Importer name and title.
- string $description: Importer description.
- callback $callback: Callback to run.
Return values
returns:Returns WP_Error when $callback is WP_Error.
Source code
function register_importer( $id, $name, $description, $callback ) { global $wp_importers; if ( is_wp_error( $callback ) ) return $callback; $wp_importers[$id] = array ( $name, $description, $callback ); }
2665
No comments yet... Be the first to leave a reply!