Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter aluiest

    (@aluiest)

    I have modified pdf_thumbnails_admin_int to add a new hook on updated_post_meta and works fine:

    function pdf_thumbnails_admin_int()
    {
    if (!extension_loaded(‘imagick’)) {
    add_action(‘admin_notices’, ‘pdf_thumbnails_missing_imagick’);
    return;
    }
    add_filter(‘wp_generate_attachment_metadata’, ‘pdf_thumbnails_generate_attachment_metadata’, 10, 2);
    add_action(‘deleted_post’, ‘pdf_thumbnails_deleted_post’);
    add_action(‘updated_post_meta’, ‘pdf_thumbnails_generate_attachment_metadata’,10,2);
    }

    Plugin Author stianlik

    (@stianlik)

    I am not able to reproduce the issue, tested the following:

    1. Upload PDF attachment
    2. Verified that PDF thumbnail exists and is attached to PDF: OK
    3. Modified title and description on PDF attachment
    4. Verified that PDF thumbnail still exists and is attached to PDF: OK
    5. Modified title and description on generated PDF thumbnail
    6. Verified that PDF thumbnail still exists and is attached to PDF: OK

    Can you post the steps you take to reproduce the issue?

    What happens if you try this on a clean WordPress-installation without any other plugins?

    Plugin Author stianlik

    (@stianlik)

    Two months since last update, assuming that the issue was resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need to rebuild thumbnail when i edit de pdf attachment post’ is closed to new replies.