• Resolved Sheng

    (@sisheng1998)


    I have this code running only at wordpress backend because I want to disable auto upload images via media library but allows visitor uploaded img to be auto watermarked.

    function add_watermark( $should_apply ) {
        return false;
    }
    add_filter( 'easy-watermark/should-apply-watermark', 'add_watermark' );

    This code run well at normal wordpress site but once I use this code at multisite, it wont works anymore. Any solution to make this code able to execute at multisite?

    *remark: this code is added to Code Snippet Plugin with the setting “Only run in administration area”

    • This topic was modified 4 years, 6 months ago by Sheng.
    • This topic was modified 4 years, 6 months ago by Sheng.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Sheng

    (@sisheng1998)

    Sorry, this code is working, the issue is my WordPress media library keeps showing the 1st version of the image, thus I think that this issue is because of the code not executing for multisite. So, sorry again for the issue, this code is working.

    Plugin Support annaszalkiewicz

    (@annaszalkiewicz)

    Hello,

    Glad you’ve worked it out!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add filter not working for multisite’ is closed to new replies.