wpmdb_export_relative_path

wpmdb_export_relative_path

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

apply_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++;
    
wpmdb_export_relative_path - WordPress Hooks

wpmdb_export_relative_path

wpmdb_export_relative_path

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.1

apply_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++;