wpmdb_export_relative_path
wpmdb_export_relative_path
Appears in: wp-migrate-db.2.6.1, wp-migrate-db.2.6.10, wp-migrate-db.2.6.11, wp-migrate-db.2.6.3, wp-migrate-db.2.6.4, wp-migrate-db.2.6.5, wp-migrate-db.2.6.6, wp-migrate-db.2.6.7, wp-migrate-db.2.6.8, wp-migrate-db.2.6.9
Hook Type: filter
Displaying hooks found in version: wp-migrate-db.2.6.9apply_filters('wpmdb_export_relative_path') is found 1 times:
- /class/Common/FullSite/FullSiteExport.php line 82
if (file_exists($file['absolute_path'])) { //Apply filters to file $file = $this->apply_file_filters($file, $state_data); $relative_path = $stage === 'core' ? $file['relative_root_path'] : $file['relative_path']; $relative_path = apply_filters('wpmdb_export_relative_path', $relative_path, $state_data); $add_file = $zip->addFile($file['absolute_path'], $path . DIRECTORY_SEPARATOR . $relative_path); if ( ! $add_file) { return new \WP_Error('wp-migrate-db-could-not-add-file-to-archive', sprintf(__('Could not add %s to ZIP Archive', 'wp-migrate-db'), $file['name'])); } $count++;