WordPress.org

Forums

Attachments
Work with post thumbnail editor (2 posts)

  1. matt.chugg
    Member
    Posted 1 year ago #

    Would you be open to updating your plugin to work with post thumbnail editor.

    If you aren't familiar with it, its a very useful plugin allowing the user to choose the crop on a featured image or other defined thumbnail size (http://wordpress.org/plugins/post-thumbnail-editor/). (please note, this is not my plugin)

    http://wordpress.org/plugins/multiple-post-thumbnails/

    In terms of integration, it adds a link below the "remove featured image" link in the featured image meta, however if using your plugin to create a secondary featured image that link isn't there.

    I had a look at the code for your plugin and think its a simple fix, which his working for me at the moment. I added the following line after line 1193 in class-attachments.php

    <div><?php if(is_plugin_active("post-thumbnail-editor/post-thumbnail-editor.php")) { echo("<a href=\"" . get_admin_url(get_current_blog_id(),"upload.php?page=pte-edit&pte-id={$attachment->id}") . "\" target=\"_blank\">Post Thumbnail Editor</a>");} ?></div>

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    I think the best thing to do here would be to add a hook to facilitate this, I'll make a note to review the linked plugin soon and include a proper hook in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.