PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 4.1.1
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v4.1.1
4.1.1 3.9.5 3.9.6 4.0.0 4.0.1 4.1.0 trunk 2.12 2.13 2.14 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.3-beta-1.0 3.7.4 3.7.4-beta-1.0 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4
wp-all-import / actions / attachment_updated.php
wp-all-import / actions Last commit date
add_attachment.php 1 month ago admin_head.php 1 month ago admin_init.php 1 month ago admin_menu.php 1 month ago admin_notices.php 1 month ago attachment_updated.php 1 month ago delete_post.php 1 month ago pmxi_after_xml_import.php 1 month ago pmxi_before_xml_import.php 1 month ago pmxi_extend_options_custom_fields.php 1 month ago wp_ajax_auto_detect_cf.php 1 month ago wp_ajax_auto_detect_sf.php 1 month ago wp_ajax_delete_import.php 1 month ago wp_ajax_dismiss_notifications.php 1 month ago wp_ajax_import_failed.php 1 month ago wp_ajax_test_images.php 1 month ago wp_ajax_wpai_dismiss_review_modal.php 1 month ago wp_ajax_wpai_send_feedback.php 1 month ago wpmu_new_blog.php 1 month ago
attachment_updated.php
29 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3 /**
4 * Fires once an existing attachment has been updated.
5 *
6 * @since 4.4.0
7 *
8 * @param int $post_ID Post ID.
9 * @param WP_Post $post_after Post object following the update.
10 * @param WP_Post $post_before Post object before the update.
11 */
12 function pmxi_attachment_updated($post_ID, $post_after, $post_before){
13 // update image filename in pmxi_images table
14 if (wp_attachment_is_image($post_ID)){
15 $imageRecord = new PMXI_Image_Record();
16 $imageRecord->getBy(array(
17 'attachment_id' => $post_ID
18 ));
19 if (!$imageRecord->isEmpty()){
20 $image_name = basename(wp_get_attachment_url( $post_ID ));
21 // Do not update filename for scaled images.
22 if (strpos($image_name, '-scaled.') === FALSE) {
23 $imageRecord->set(array(
24 'image_filename' => $image_name
25 ))->update();
26 }
27 }
28 }
29 }