You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last commit did not contain any updated documentation for the Readme file. This adds that.
Also, correct the broken array in the code example for acm_ad_tag_ids
Issue #33
Copy file name to clipboardExpand all lines: readme.txt
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,8 @@ function my_acm_ad_tag_ids( $tag_ids ) {
54
54
'sz' => '728x90', // %sz% token
55
55
'fold' => 'atf', // %fold% token
56
56
'my_custom_token' => 'something' // %my_custom_token% will be replaced with 'something'
57
-
);
57
+
),
58
+
);
58
59
return $tag_ids;
59
60
}`
60
61
@@ -101,6 +102,26 @@ function my_acm_output_html( $output_html, $tag_id ) {
101
102
return $output_html;
102
103
}`
103
104
105
+
= acm_register_provider_slug =
106
+
107
+
Ad Code Manager has a built in list of providers that it gathers by scanning the 'providers' directory used by the plugin. Additional providers can be added by placing the appropriate files in that directory, or by using the `acm_register_provider_slug` filter to register those that may be included as part of your theme or another plugin.
108
+
109
+
When using this plugin, you are defining the provider slug as part of the existing object as well as an array of classes associated with that provider slug.
110
+
111
+
Arguments:
112
+
* object $providers An object containing the current registered providers.
0 commit comments