function hxmlppp_install() { // Init Podlove Podlove Publisher unless it's already loaded if (false == function_exists('load_podlove_podcast_publisher')) { include_once WP_PLUGIN_DIR . '/podlove-podcasting-plugin-for-wordpress/podlove.php'; } // Try to find Hindenburg XML filetype $filetype = Podlove\Model\FileType::find_one_by_name('Hindenburg XML'); // Create new file type if (null === $filetype) { $filetype = new Podlove\Model\FileType(); $filetype->name = 'Hindenburg XML'; $filetype->type = 'chapters'; $filetype->mime_type = 'application/zip'; $filetype->extension = 'zip'; $filetype->save(); } }