v 0.3.3 partner registration detected with slug using options and without referer

This commit is contained in:
asus
2024-03-18 13:28:02 +01:00
parent 98dfb17bf4
commit 5be80d1566
6 changed files with 52 additions and 30 deletions

View File

@@ -4,7 +4,7 @@ Plugin Name: custer_plugin
Plugin URI:
Description: customize user : output infos on page, on email, and change current user id momentarly
Author: hugogogo
Version: 0.1.3
Version: 0.1.4
Author URI:
*/
@@ -27,7 +27,6 @@ include_once(plugin_dir_path(__FILE__) . '/filter_mail.php');
include_once(plugin_dir_path(__FILE__) . '/admin_menu.php');
include_once(plugin_dir_path(__FILE__) . '/admin_menu_toggle.php');
//add_shortcode('custer_change_id', 'CUSTER\shortcode_change_id');

View File

@@ -87,15 +87,10 @@ function filter_email_wp($args) {
// pattern : anything surrounded by '$$', ex : $$value$$
$pattern = '/\$\$(.*?)\$\$/';
error_log("inside wp_mail hook, in filter_email_wp");
$old_body = $args['message'];
$new_body = preg_replace_callback($pattern, __NAMESPACE__.'\replace_words', $old_body);
$args['message'] = $new_body;
error_log("args['message']");
error_log(json_encode($args['message']));
return $args;
}
add_filter('wp_mail', __NAMESPACE__.'\filter_email_wp', 10, 1);