WordPress.org

Ready to get started?Download WordPress

Forums

WP Smush.it
[resolved] I want to smushIt with all files uploaded (10 posts)

  1. DrMosko
    Member
    Posted 4 months ago #

    hello, I use the AWPCP Plugin and all the images uploaded to a special folder, I want to allow the smushIt plugin to control also this images.

    https://wordpress.org/plugins/wp-smushit/

  2. David
    WPMU DEV Support Staff
    Posted 4 months ago #

    Hi @DrMosko,

    I hope you're doing great today!

    As long as that plugin ties into the standard media upload functionality of WordPress, that should be possible by using the "Automatically process on upload" setting at Settings > Media.

    Have you tried that and does that not work?

    If not, I'm afraid that wouldn't work without custom code. In that case, perhaps you could ask the developer to integrate that as a feature?

    Cheers,
    David

  3. DrMosko
    Member
    Posted 4 months ago #

    hey David,

    Hope u doing Good too!

    It is set to Automatically process on upload, I thought the Deveeloper will answer me in this forum:(

  4. David
    WPMU DEV Support Staff
    Posted 4 months ago #

    Hi @DrMosko,

    As that's a premium plugin I don't have access to, I don't really have a way to help with that. It's something you'd have to take up with the developer as far as I can see.

    Thanks,
    David

  5. DrMosko
    Member
    Posted 4 months ago #

    hello David,
    smushIt premium?.....

    I want u to get me started with make smushit plugin enabled to all uploads,

    so I need to know how smushit controll the upload process so ill be able to call the function when the other plugin upload files.

  6. David
    WPMU DEV Support Staff
    Posted 4 months ago #

    Hi DrMosko,

    I actually meant that the AWPCP Plugin is a premium plugin, thus we wouldn't be able to assist with that specifically.

    But this plugin is specifically built for use with attachments in WordPress, it wouldn't really work for a solution that doesn't rely on standard WordPress functionality in that way.

    To give you an idea of how it's done you can look at the code used for manual operations on line 304 of wp-smushit.php:

    function smushit_manual( )

    That function shows you how the process is handled, and you'll also see how it totally depends on attachment features of WordPress.

    Perhaps that will help?

    Cheers,
    David

  7. DrMosko
    Member
    Posted 4 months ago #

    Thanks a lot

    ps I use the AWPCP free edition

  8. David
    WPMU DEV Support Staff
    Posted 4 months ago #

    Hi @DrMosko,

    Thanks for clarifying that! I went and tried out the plugin to see how this might be done and unfortunately, it falls into the issue of the case I described above.

    The plugin uses a custom method for the uploads, rather than using the Media Library (or attachment) functionality.

    WP Smush.it wouldn't be able to process those images directly without extensive custom code, I'm afraid.

    Have you asked that plugin author to look into that?

    I couldn't find any such request made previously, I'm just wondering if the author would be interested in adding that support.

    Cheers,
    David

  9. DrMosko
    Member
    Posted 4 months ago #

    I did ask him and he isn't interested right now,

    is it simple function I can copy paste?

  10. David
    WPMU DEV Support Staff
    Posted 3 months ago #

    Hi @DrMosko,

    Thanks for your reply. It's not quite a copy-paste matter unfortunately. The function used for the smush process itself references the attachment functionality of WordPress.

    I noted above the following on line 304 of wp-smushit.php:

    function smushit_manual( )

    That would be the function used for manual smushes and you'll see there that it makes total use of WordPress attachment features.

    It's not designed for use apart from standard WordPress functionality via the media library.

    Hope that helps.

    Cheers,
    David

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.