admin_head.php
9 years ago
admin_init.php
5 years ago
admin_menu.php
4 years ago
admin_notices.php
8 years ago
init.php
8 years ago
pmxe_after_export.php
8 years ago
pmxe_before_export.php
8 years ago
pmxe_exported_post.php
10 years ago
wp_ajax_dismiss_export_warnings.php
9 years ago
wp_ajax_dismiss_warnings.php
4 years ago
wp_ajax_generate_zapier_api_key.php
10 years ago
wp_ajax_redirect_after_addon_installed.php
6 years ago
wp_ajax_save_scheduling.php
8 years ago
wp_ajax_scheduling_dialog_content.php
5 years ago
wp_ajax_wpae_available_rules.php
8 years ago
wp_ajax_wpae_filtering.php
4 years ago
wp_ajax_wpae_filtering_count.php
4 years ago
wp_ajax_wpae_preview.php
8 years ago
wp_ajax_wpae_upgrade_notice.php
4 years ago
wp_ajax_wpallexport.php
8 years ago
wp_loaded.php
4 years ago
wpmu_new_blog.php
10 years ago
pmxe_exported_post.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | function pmxe_pmxe_exported_post( $pid, $exportRecord ) |
| 4 | { |
| 5 | // do not associate exported record with child export |
| 6 | if ( ! empty($exportRecord->parent_id) ) return; |
| 7 | |
| 8 | $postRecord = new PMXE_Post_Record(); |
| 9 | $postRecord->getBy(array( |
| 10 | 'post_id' => $pid, |
| 11 | 'export_id' => XmlExportEngine::$exportID |
| 12 | )); |
| 13 | |
| 14 | if ($postRecord->isEmpty()) |
| 15 | { |
| 16 | $postRecord->set(array( |
| 17 | 'post_id' => $pid, |
| 18 | 'export_id' => XmlExportEngine::$exportID, |
| 19 | 'iteration' => $exportRecord->iteration |
| 20 | ))->insert(); |
| 21 | } |
| 22 | else |
| 23 | { |
| 24 | $postRecord->set(array('iteration' => $exportRecord->iteration))->update(); |
| 25 | } |
| 26 | } |