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
@@ -597,267 +615,23 @@ function contextual_help() {
597
615
</div>
598
616
<?php
599
617
$contextual_help = ob_get_clean();
600
-
601
-
ob_start();
602
-
?>
603
-
<p>Ad Code Manager gives non-developers an interface in the WordPress admin for configuring your complex set of ad codes.</p>
604
-
<p>We tried to streamline the process and make everyday AdOps a little bit easier</p>
605
-
<p>Depending on ad network you use, you will see a set of required fields to fill in (generally, "Ad Code" is a set of parameters you need to pass to ad server, so it could serve proper ad). Then you set conditionals. You can create ad code with conditionals in one easy step</p>
606
-
<p>Priorities work pretty much the same way they work in WordPress. Lower numbers correspond with higher priority.
607
-
<p>Once you've done creating ad codes, you can easily implement them in your theme using:</p>
<p>There are some filters which will allow you to easily customize output of the plugin. You should place these filters in your themes functions.php file or someplace safe.</p>
619
-
620
-
<a href="https://gist.github.com/1631131" target="_blank">Check out this gist</a> to see all of the filters in action.
621
-
622
-
<p><strong>acm_default_url</strong></p>
623
-
624
-
<p>Currently, we don't store tokenized script URL anywhere so this filter is a nice place to set default value.</p>
625
-
626
-
<p>Arguments: <br />
627
-
* string $url The tokenized url of Ad Code</p>
628
-
<p>Example usage: Set your default ad code URL</p>
<p>Change the behavior of Ad Code Manager so that ad codes without conditionals display on the frontend. The default behavior is that each ad code requires a conditional to be included in the presentation logic.</p>
773
-
774
-
<p>Arguments: <br />
775
-
* bool $behavior Whether or not to display the ad codes that don't have conditionals</p>
<p>By default we use our bundled doubleclick_for_publishers config ( check it in /providers/doubleclick-for-publishers.php ). If you want to add your own flavor of DFP or even implement configuration for some another ad network, you'd have to apply a filter to correct the slug.</p>
<p>This filter is only for edge cases. Most likely you won't have to touch it. Allows to include additional query args for Ad_Code_Manager->get_ad_codes() method.</p>
<p>By default the total number of ad codes to get is 50, which is reasonable for any small to mid site. However, in some certain cases you would want to increase the limit. This will affect Ad_Code_Manager->get_ad_codes() 'numberposts' query argument.</p>
<p>This filter comes in pair with previous one, it should return array of ad network specific parameters. E.g. in acm_list_table_columns example we have
841
-
'id', 'name', 'priority', 'conditionals'. All of them except name are generic for Ad Code Manager. Hence acm_provider_columns should return only "name"</p>
842
-
843
-
<p>Example usage:</p>
844
-
<pre>add_filter( 'acm_provider_columns', function ( $columns ) {
0 commit comments