Select Page

All of these functions are static functions in the BeRocket_image_watermark class.

admin_init ()

Function for initializing scripts and page settings in the admin bar.

options ()

Add option page to admin menu.

br_get_template_part( $name = ” )

Get template part.

  • $name – template name

Default templates are placed in plugins folder woocommerce-products-image-watermark/templates.

To rewrite the template in your theme folder create folder with name woocommerce-image_watermark and places new template with identical name in this folder.

add_watermark_to_images( $post_id )

Add watermark to images attached to product with id $post_id.

  • $post_id – product id