documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Updates info on YITH WooCommerce plugins with MPDF

Open morganestes opened this issue 3 years ago • 2 comments

Summary

WordPress Plugins and Themes with Known Issues - Updates the YITH filters for MPDF file storage.

Since the same issue affects multiple YITH plugins that use the MPDF library, this makes the filter function reusable so it can be used as a callback for multiple filters.

Instead of adding two separate sections for each plugin, I combined them into a single section that can be easily updated as new plugins and filter names are needed.

Also updated the code sample to say the file is functions.php instead of wp-config.php since you can't use the wp_upload_dir function then.

Effect

Changes the specific plugin section to a more general one, which is a new change for the page.

Code sample assumes the user's PHP version supports argument and return types. If that's not the case then the code will fail unless those are removed when pasting.


Post Launch

Do not remove - To be completed by the docs team upon merge:

  • [ ] Redirect /docs/old-path/ => /docs/new-path/ (if applicable)
  • [ ] Include/exclude pages ^ respectively within docs search service provider (if applicable)
  • [ ] For Heroes - add a props post to the discussion board.
  • [ ] Remove from the project board

morganestes avatar May 04 '22 16:05 morganestes

Thank you for this contribution @morganestes 🎉

joan-ing avatar May 05 '22 11:05 joan-ing

Currently testing this plugin with CSE

joan-ing avatar May 12 '22 10:05 joan-ing