Changeset 3078598
- Timestamp:
- 04/29/2024 10:48:45 AM (2 years ago)
- Location:
- simple-export-import-for-acf-data/trunk
- Files:
-
- 6 edited
-
app.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/SeipExport.php (modified) (1 diff)
-
src/SeipFront.php (modified) (2 diffs)
-
view/_export.php (modified) (2 diffs)
-
view/export_import.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-export-import-for-acf-data/trunk/app.php
r3049001 r3078598 5 5 Plugin URI: https://www.opcodespace.com 6 6 Author: Opcodespace <mehedee@opcodespace.com> 7 Version: 1.3.1 67 Version: 1.3.17 8 8 Text Domain: simple-export-import-for-acf-data 9 9 */ … … 13 13 define("SEIP_VIEW_PATH", wp_normalize_path(plugin_dir_path(__FILE__) . "view/")); 14 14 define("SEIP_ASSETSURL", plugins_url("assets/", __FILE__)); 15 define('SEIP_PLUGIN_VERSION', '1.3.1 6');15 define('SEIP_PLUGIN_VERSION', '1.3.17'); 16 16 define('PAID_TEXT', '<small class="paid_text">(This is for paid user)</small>'); 17 17 -
simple-export-import-for-acf-data/trunk/readme.txt
r3049001 r3078598 3 3 Tags: Export, Import, Page, Post, Custom Post Type, Advanced custom field, Field Value 4 4 Requires at least: 5.4.0 5 Tested up to: 6. 4.15 Tested up to: 6.5.2 6 6 Requires PHP: 7.0 7 Stable tag: 1.3.1 67 Stable tag: 1.3.17 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 96 96 97 97 == Changelog == 98 = 1.3.15 (March 11, 2024) = 98 = 1.3.17 (April 23, 2024) = 99 * Enhancement: Splitting Bulk Export 100 101 = 1.3.16 (March 11, 2024) = 99 102 * Bug Fixed: Image/File field type error 100 103 -
simple-export-import-for-acf-data/trunk/src/SeipExport.php
r2972362 r3078598 37 37 38 38 $post_ids = isset($_POST['post_ids']) ? explode(',', $_POST['post_ids']) : false; 39 40 39 41 40 42 if(empty($post_ids)){ -
simple-export-import-for-acf-data/trunk/src/SeipFront.php
r2970520 r3078598 74 74 $taxonomy = sanitize_text_field($_POST['taxonomy']); 75 75 $terms = (array)($_POST['terms']); 76 $from = isset($_POST['from']) ? (int) $_POST['from'] : 0; 77 $to = isset($_POST['to']) ? (int) $_POST['to'] : 0; 78 79 $posts_per_page = -1; 80 81 if($from > 0 && $to > 0){ 82 $posts_per_page = $to - $from + 1; 83 } 76 84 77 85 $args = [ 78 86 'post_type' => $post_type, 79 ' numberposts' => - 187 'posts_per_page' => $posts_per_page 80 88 ]; 89 90 if($from > 0 && $to > 0){ 91 $args['offset'] = $from - 1; 92 } 81 93 82 94 if(!empty($terms) && !empty($taxonomy)){ … … 105 117 foreach($posts as $post){ 106 118 $sorted_posts[] = [ 107 'ID' => (int)$post->ID,119 'ID' => $post->ID, 108 120 'post_name' => esc_attr($post->post_name) 109 121 ]; -
simple-export-import-for-acf-data/trunk/view/_export.php
r2965633 r3078598 69 69 </td> 70 70 </tr> 71 <tr class="bulk_export_visible"> 72 <td colspan="2"><label class="label_block">If you have large number of posts and images, you should split post to get rid of time out issue.</label></td> 73 </tr> 74 <tr class="bulk_export_visible"> 75 <td> 76 <label class="label_block">Split Post</label> 77 </td> 78 <td> 79 <input type="number" name="split_post_from" id="split_post_from" placeholder="From"><br><br> 80 <input type="number" name="split_post_to" id="split_post_to" placeholder="To"> 81 </td> 82 </tr> 71 83 <tr class="bulk_export_visible"> 72 84 <td> … … 80 92 </td> 81 93 </tr> 94 82 95 83 96 </table> -
simple-export-import-for-acf-data/trunk/view/export_import.php
r2972381 r3078598 174 174 terms: $('#seip_terms').val() || '', 175 175 taxonomy: $('#seip_taxonomies').val() || '', 176 from: $('#split_post_from').val() || '', 177 to: $('#split_post_to').val() || '', 176 178 _wpnonce: $('#seip_export_import_nonce').val() 177 179 } … … 270 272 seip_get_all_posts($(this)); 271 273 }) 274 275 $('[name="split_post_from"]').change(function () { 276 seip_get_all_posts($(this)); 277 }) 278 279 $('[name="split_post_to"]').change(function () { 280 seip_get_all_posts($(this)); 281 }) 272 282 }) 273 283 </script>
Note: See TracChangeset
for help on using the changeset viewer.