Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
civicrm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plugins
civicrm
Commits
58900728
Verified
Commit
58900728
authored
5 years ago
by
Andrei Mondoc
Committed by
Kevin Cristiano
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add civi_wp_rest/plugin/replace_mailing_tracking_urls filter
Signed-off-by:
Kevin Cristiano
<
kcristiano@kcristiano.com
>
parent
a80d4d76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wp-rest/Plugin.php
+13
-2
13 additions, 2 deletions
wp-rest/Plugin.php
with
13 additions
and
2 deletions
wp-rest/Plugin.php
+
13
−
2
View file @
58900728
...
...
@@ -69,8 +69,19 @@ class Plugin {
*/
private
function
setup_objects
()
{
if
(
CIVICRM_WP_REST_REPLACE_MAILING_TRACKING
)
{
/**
* Filter to replace the mailing tracking URLs.
*
* @since 0.1
* @param bool $replace_mailing_tracking_urls
*/
$replace_mailing_tracking_urls
=
apply_filters
(
'civi_wp_rest/plugin/replace_mailing_tracking_urls'
,
false
);
// keep CIVICRM_WP_REST_REPLACE_MAILING_TRACKING for backwards compatibility
if
(
$replace_mailing_tracking_urls
||
(
defined
(
'CIVICRM_WP_REST_REPLACE_MAILING_TRACKING'
)
&&
CIVICRM_WP_REST_REPLACE_MAILING_TRACKING
)
)
{
// register mailing hooks
$mailing_hooks
=
(
new
Mailing_Hooks
)
->
register_hooks
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment