• This plugin is broken. I installed it, activated it, and checked the little box that says “Enable Apply Watermark option for Media Library images.”

    There is no option under the bulk options in media despite this. Instead you are prompted to change to list mode for it to work, but list mode doesn’t work because there is no watermark option in the drop down list.

    Plus, you can’t accurately promote your plugin as supporting bulk anything if that “bulk” feature is limited to batches of 30 or whatever your screen options allow you to edit at once in the editor.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I solved the bulk “apply” and “remove” watermark issue by editing image-watermark.php line 112. If you change the priority in which ‘admin_print_scripts’ loads from 20 to something like 80, the js loads below jQuery which allows for the select list insertion.

    Go from
    add_action( 'admin_print_scripts', array( $this, 'admin_print_scripts' ), 20 );

    To
    add_action( 'admin_print_scripts', array( $this, 'admin_print_scripts' ), 80 );

    This, of course, doesn’t solve the issue with limited amount of images visible by the media library.

    thenickb (@thenickb)

    Found image-watermark.php but line 112 says

    add_action( ‘wp_enqueue_media’, array( $this, ‘wp_enqueue_media’ ) );

    I added

    add_action( ‘admin_print_scripts’, array( $this, ‘admin_print_scripts’ ), 80 );

    in at 112 but it comes up with an error when I access the Media Library

    ( ! ) Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Image_Watermark' does not have a method 'admin_print_scripts' in C:\Users\Alan\Local Sites\alan20220621\app\public\wp-includes\class-wp-hook.php on line 307
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0011	373656	{main}( )	...\upload.php:0
    2	4.8790	94357888	require_once( 'C:\Users\Alan\Local Sites\alan20220621\app\public\wp-admin\admin-header.php' )	...\upload.php:268
    3	4.9665	94877416	do_action( )	...\admin-header.php:146
    4	4.9665	94877792	WP_Hook->do_action( )	...\plugin.php:476
    5	4.9665	94877792	WP_Hook->apply_filters( )	...\class-wp-hook.php:331

    Looks like its broken ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BROKEN! DO NOT USE!’ is closed to new replies.