Viewing 1 replies (of 1 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    You can just call the core ewww_image_optimizer() function after the import. There are a bunch of optional parameters, but the only required one is the full filename as the first parameter, so it would look something like this:

    ewww_image_optimizer( '/home/user/www/wp-content/custom_uploads/my_awesome_image.jpg' );

Viewing 1 replies (of 1 total)
  • The topic ‘Hooks for the plugin?’ is closed to new replies.