Easy Watermark icon
Media, Galleries & Sliders

Easy Watermark hooks reference

  • By Wojtek Szałkiewicz
  • v1.0.11
  • Updated

Easy Watermark 1.0.11 has 10 actions and 13 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Easy Watermark fires an action
add_action( 'easy-watermark/print-preview', function( $type, $format, $size ) {
	// Your code runs here.
}, 10, 3 );

// Change a value Easy Watermark is about to use
add_filter( 'easy-watermark/should-apply-watermark', function( $value, $watermark, $attachment_id, $attachment, $meta, $applied_watermarks ) {
	// Change $value here.
	return $value;
}, 10, 6 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • src/classes/Watermark/Handler.php line 260
    /**
     * This filter allows to programatically prevent watermarking certain
     * attachment if `false` returned from attached function.
     */
    apply_filters( 'easy-watermark/should-apply-watermark', true, $watermark, $attachment_id, $attachment, $meta, $applied_watermarks );
  • src/classes/Features/WatermarkPreview.php line 118 · used in 2 places
    do_action( 'easy-watermark/print-preview', $type, $format, $size );
  • src/views/edit-screen/metaboxes/attachment/watermarks.php line 60
    do_action( 'easy-watermark/attachment-metabox-content', $watermarks );
  • src/classes/Backup/Manager.php line 46
    apply_filters( 'easy-watermark/available-backuppers', $backuppers );
  • src/classes/AttachmentProcessor/Manager.php line 38
    apply_filters( 'easy-watermark/available-processors', $processors );
  • src/views/dashboard/wrap.php line 24
    do_action( "easy-watermark/dashboard/{$current_tab}/content" );
  • src/classes/Dashboard/Dashboard.php line 92
    apply_filters( "easy-watermark/dashboard/{$current_tab}/view-args", [] );
  • src/classes/Dashboard/Dashboard.php line 120
    do_action( "easy-watermark/dashboard/{$tab}/notices" );
  • src/views/dashboard/wrap.php line 25
    do_action( 'easy-watermark/dashboard/content', $current_tab );
  • src/classes/Dashboard/Dashboard.php line 119
    do_action( 'easy-watermark/dashboard/notices', $tab );
  • src/classes/Dashboard/Dashboard.php line 130
    apply_filters( 'easy-watermark/dashboard/tabs', [] );
  • src/classes/Helpers/Text.php line 52
    apply_filters( 'easy-watermark/font-path', $path, $font );
  • src/classes/Backup/LocalBackupper.php line 36
    apply_filters( 'easy-watermark/local-backupper-dir', $backup_dir );
  • src/classes/Placeholders/Abstracts/Placeholder.php line 170
    apply_filters( 'easy-watermark/placeholder/resolve', $this->sanitize( $value ) );
  • src/classes/Placeholders/Resolver.php line 117
    apply_filters( 'easy-watermark/placeholder/resolved', $this->placeholders[ $placeholder_slug ]->get_value( $this ), $this->placeholders[ $placeholder_slug ] );
  • src/classes/Placeholders/Resolver.php line 57
    do_action( 'easy-watermark/placeholders/load', $this );
  • src/classes/Placeholders/Resolver.php line 97
    apply_filters( 'easy-watermark/placeholders/resolved', $resolved, $this );
  • src/classes/Placeholders/Resolver.php line 93
    apply_filters( 'easy-watermark/placeholders/resolving', $value, $this );
  • src/classes/Settings/Settings.php line 60
    do_action( 'easy-watermark/settings/register', $this );
  • src/classes/Settings/Section.php line 55
    do_action( "easy-watermark/settings/register/{$this->get_slug()}", $this );
  • src/classes/Watermark/Handler.php line 136
    apply_filters( 'easy-watermark/watermark-types', $types );
  • ew_load

    action
    src/classes/Core/Plugin.php line 84
    do_action( 'ew_load', $this );
  • src/classes/Helpers/Image.php line 22
    apply_filters( 'image_size_names_choose', [ 'thumbnail' => __( 'Thumbnail' ), 'medium' => __( 'Medium' ), 'medium_large' => __( 'Intermediate' ), 'large' => __( 'Large' ), 'full' => __( 'Full Size' ), ] );

Generated from Easy Watermark's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: