Changeset 3219572
- Timestamp:
- 01/09/2025 11:30:43 AM (15 months ago)
- Location:
- cookiehub/trunk
- Files:
-
- 1 added
- 5 edited
-
changelog.txt (modified) (1 diff)
-
cookiehub.php (modified) (2 diffs)
-
includes/ch-admin.php (modified) (1 diff)
-
includes/ch-generate.php (modified) (2 diffs)
-
includes/js/dcc-wp-consent.js (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cookiehub/trunk/changelog.txt
r3198183 r3219572 1 1 === CookieHub === 2 3 = 1.2.0 = 4 *Release Date - 9 January 2025* 5 6 WP Consent API support integrated 2 7 3 8 = 1.1.5 = -
cookiehub/trunk/cookiehub.php
r3198183 r3219572 4 4 Plugin URI: https://www.cookiehub.com/wordpress 5 5 Description: Take control effortlessly with CookieHub – GDPR-compliant solution for cookie management and compliance. 6 Version: 1. 1.56 Version: 1.2.0 7 7 Author: CookieHub 8 8 Author URI: https://www.cookiehub.com/ … … 46 46 } 47 47 } 48 49 function my_plugin_enqueue_script() { 50 if (function_exists( 'wp_has_consent' )) { 51 wp_register_script( 'dcc_wp_consent', plugins_url( 'includes/js/dcc-wp-consent.js?1.2.0', __FILE__ ), null ,'', false); 52 wp_enqueue_script('dcc_wp_consent'); 53 } 54 } 55 add_action('wp_enqueue_scripts', 'my_plugin_enqueue_script'); 56 57 function custom_get_consent_type() { 58 return 'optin'; 59 } 60 add_filter('wp_get_consent_type', 'custom_get_consent_type'); -
cookiehub/trunk/includes/ch-admin.php
r3000646 r3219572 51 51 public function dcchub_page_init() 52 52 { 53 wp_register_style( 'dcchub_style', plugins_url( '/css/dcchub-admin.css?1. 0.2', __FILE__ ));53 wp_register_style( 'dcchub_style', plugins_url( '/css/dcchub-admin.css?1.2.0', __FILE__ )); 54 54 wp_enqueue_style('dcchub_style'); 55 wp_register_script( 'dcchub_test', plugins_url( '/js/dcchub-test.js?1. 0.2', __FILE__ ), array ('jquery') ,'', false);55 wp_register_script( 'dcchub_test', plugins_url( '/js/dcchub-test.js?1.2.0', __FILE__ ), array ('jquery') ,'', false); 56 56 wp_enqueue_script('dcchub_test'); 57 57 wp_localize_script('my-script', 'ajax_object', array('ajax_url' => admin_url('admin-ajax.php'))); -
cookiehub/trunk/includes/ch-generate.php
r3141575 r3219572 32 32 } 33 33 34 $cpm = "language: '" . $lang . "'"; 34 $cpm = "language: '" . $lang . "',"; 35 } 36 37 if (function_exists( 'wp_has_consent' )) { 38 $onAllow = "onAllow: function(category) { 39 if (typeof wpConsentProxy === 'function') { wpConsentProxy(category, 'allow') }; 40 },"; 41 42 $onRevoke = "onRevoke: function(category) { 43 if (typeof wpConsentProxy === 'function') { wpConsentProxy(category, 'deny') }; 44 }"; 35 45 } 36 46 … … 38 48 } 39 49 40 return $cpm ;50 return $cpm . $onAllow . $onRevoke; 41 51 } 42 52 -
cookiehub/trunk/readme.txt
r3198183 r3219572 4 4 Requires at least: 5.2 5 5 Tested up to: 6.7.1 6 Stable tag: 1. 1.56 Stable tag: 1.2.0 7 7 License: GPLv2 or later 8 8 … … 135 135 == Changelog == 136 136 137 = 1.2.0 = 138 *Release Date - 9 January 2025* 139 140 WP Consent API support integrated 141 137 142 = 1.1.5 = 138 143 *Release Date - 27 November 2024*
Note: See TracChangeset
for help on using the changeset viewer.