Skip to content

Commit

Permalink
Add git ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
danieliser committed Aug 5, 2024
1 parent ac653d8 commit 1ebc01e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor
.DS_Store
21 changes: 11 additions & 10 deletions edd-file-watermarking.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

/**
* Plugin Name: EDD File Watermarking
* Description: Adds an identifier to downloaded EDD files to track which customer downloaded it. Thanks @westguard!
* Plugin URI: https://danieliser.com/downloads/edd-file-watermarking/
* Version: 1.0
* Version: 1.1.0
* Author: Daniel Iser
* Author URI: https://danieliser.com/
* GitHub Plugin URI: https://github.com/danieliser/edd-file-watermarking
Expand All @@ -19,7 +20,7 @@

require_once __DIR__ . '/inc/functions.php';

if ( ! defined( 'ABSPATH' ) ) {
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}

Expand All @@ -28,27 +29,27 @@
*
* This calls the `watermark_edd_download` and `watermark_edd_download_{$plugin_filename}` action if the file should be watermarked.
*/
add_filter( 'edd_requested_file', __NAMESPACE__ . '\\watermark_edd_download', 10, 4 );
add_filter('edd_requested_file', __NAMESPACE__ . '\\watermark_edd_download', 10, 4);

/**
* Process the built global & per download settings in watermarks on a given zip file.
*/
add_action( 'watermark_edd_download', __NAMESPACE__ . '\\process_zip_builtin_watermarks', 10, 2 );
add_action('watermark_edd_download', __NAMESPACE__ . '\\process_zip_builtin_watermarks', 10, 2);

/**
* Add global extension settings.
*/
add_filter( 'edd_settings_sections_extensions', __NAMESPACE__ . '\\edd_watermark_register_settings_section' );
add_filter( 'edd_settings_extensions', __NAMESPACE__ . '\\edd_watermark_add_settings' );
add_filter( 'edd_settings_sanitize_watermark_repeater', __NAMESPACE__ . '\\sanitize_watermark_repeater_settings', 10, 2 );
add_filter('edd_settings_sections_extensions', __NAMESPACE__ . '\\edd_watermark_register_settings_section');
add_filter('edd_settings_extensions', __NAMESPACE__ . '\\edd_watermark_add_settings');
add_filter('edd_settings_sanitize_watermark_repeater', __NAMESPACE__ . '\\sanitize_watermark_repeater_settings', 10, 2);

/**
* Add the watermark meta box.
*/
add_action( 'add_meta_boxes', __NAMESPACE__ . '\\edd_watermark_add_meta_box' );
add_action( 'save_post', __NAMESPACE__ . '\\edd_watermark_save_post_meta' );
add_action('add_meta_boxes', __NAMESPACE__ . '\\edd_watermark_add_meta_box');
add_action('save_post', __NAMESPACE__ . '\\edd_watermark_save_post_meta');

/**
* Cleanup old watermarks on a daily basis.
*/
add_action( 'edd_daily_scheduled_events', __NAMESPACE__ . '\\edd_watermark_cleanup' );
add_action('edd_daily_scheduled_events', __NAMESPACE__ . '\\edd_watermark_cleanup');
27 changes: 27 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
=== Easy Digital Downloads - File Watermarking ===
Contributors: codeatlantic, danieliser
Plugin URI: https://github.com/danieliser/edd-file-watermarking
Author URI: https://contentcontrolplugin.com/?utm_campaign=plugin-info&utm_source=readme-header&utm_medium=plugin-ui&utm_content=author-uri
Donate link: https://code-atlantic.com/donate/?utm_campaign=donations&utm_source=readme-header&utm_medium=plugin-ui&utm_content=donate-link
Tags:
Requires at least: 6.2
Tested up to: 6.6
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv3 (or later)


== Description ==

Easy Digital Downloads - File Watermarking allows you to apply a watermark to your downloadable files. This can help prevent unauthorized distribution of your files.

== Changelog ==

= 1.1.0 - 2024-08-05 =

- Fix: Error hen saving settings.
- Fix: Issues when multiple changes to the same file.

= v1.0.0 =

- Initial Release

0 comments on commit 1ebc01e

Please sign in to comment.