[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fYwSIeaEso7C3a_xkJuDHnwvPaVXPmkTzn-CEOgfVlWc":3},{"slug":4,"name":5,"version":6,"author":7,"author_profile":8,"description":9,"short_description":10,"active_installs":11,"downloaded":12,"rating":13,"num_ratings":13,"last_updated":14,"tested_up_to":15,"requires_at_least":16,"requires_php":17,"tags":18,"homepage":24,"download_link":25,"security_score":26,"vuln_count":13,"unpatched_count":13,"last_vuln_date":27,"fetched_at":28,"vulnerabilities":29,"developer":30,"crawl_stats":27,"alternatives":38,"analysis":131,"fingerprints":323},"ad-code-manager","Ad Code Manager","0.8.0","Automattic","https:\u002F\u002Fprofiles.wordpress.org\u002Fautomattic\u002F","\u003Cp>Ad Code Manager gives non-developers an interface in the WordPress admin for configuring your complex set of ad codes.\u003C\u002Fp>\n\u003Cp>Some code-level configuration may be necessary to set up Ad Code Manager. Ad tags must be added (via \u003Ccode>do_action()\u003C\u002Fcode>) to your theme’s template files where you’d like ads to appear. Alternatively, you can incorporate ad tags into your website with our widget and shortcode. Check out the configuration guide below for the full details.\u003C\u002Fp>\n\u003Cp>A common set of parameters must also be defined for your ad provider. This includes the tag IDs used by your template, the default URL for your ad provider, and the default HTML surrounding that URL. Ad Code Manager supports Google DoubleClick For Publishers (and Async), and Google AdSense. All the logic is abstracted, however, so configuring a different provider is relatively easy. Check \u003Ccode>providers\u002Fdoubleclick-for-publishers.php\u003C\u002Fcode> for an idea of how to extend ACM to suit your needs.\u003C\u002Fp>\n\u003Cp>Once this configuration is in place, the Ad Code Manager admin interface will allow you to add new ad codes, modify the parameters for your script URL, and define conditionals to determine when the ad code appears. Conditionals are core WordPress functions like is_page(), is_category(), or your own custom functions that evaluate certain expressions and then return true or false.\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FAutomattic\u002FAd-Code-Manager\" rel=\"nofollow ugc\">Fork the plugin on Github\u003C\u002Fa> and \u003Ca href=\"http:\u002F\u002Fadcodemanager.wordpress.com\u002F\" rel=\"nofollow ugc\">follow our development blog\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch3>Configure Ad Code Manager to manage the advertisements on your site\u003C\u002Fh3>\n\u003Cp>Ad Code Manager is a VIP-sponsored plugin designed to make managing the ad codes used to display advertisements on your site easier. There’s a little bit of work you’ll need to do upfront to integrate Ad Code Manager with your theme.\u003C\u002Fp>\n\u003Cp>The high-level idea behind Ad Code Manager is that it gives non-developers an admin interface to manage ad codes. It then permits users to (optionally) target specific ad codes using conditionals like \u003Ccode>is_home()\u003C\u002Fcode> and \u003Ccode>is_single()\u003C\u002Fcode>. Ad codes are associated with positions in the theme through the use of ad tags.\u003C\u002Fp>\n\u003Cp>Currently, Ad Code Manager easily integrates with Google DoubleClick For Publishers Async and Google AdSense. Other ad providers are supported with additional configuration.\u003C\u002Fp>\n\u003Ch3>Google AdSense and DoubleClick For Publishers Async\u003C\u002Fh3>\n\u003Cp>Let’s use AdSense as our first example. You’ll want to incorporate some of the default ad tags into your theme by use of \u003Ccode>do_action()\u003C\u002Fcode>. Here’s an example you might put in your header.php file:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>do_action( 'acm_tag', '728x90_leaderboard' );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Once done, you can select the “Google AdSense” provider in the admin. Ad codes can be registered against ad tags (positions) by choosing the ad tag from the drop-down, entering the tag ID and publisher ID, and hitting “Add New Ad Code”.\u003C\u002Fp>\n\u003Cp>And like that, your 728×90 leaderboard will appear on your site.\u003C\u002Fp>\n\u003Cp>The Google AdSense configuration comes with many of Google’s suggested sizes. Additional ad tags can be registered by way of filtering:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_ad_tag_ids', 'acmx_filter_ad_tag_ids' );\nfunction acmx_filter_ad_tag_ids( $ids ) {\n    $ids[] = array(\n        'enable_ui_mapping' => true,\n        'tag'               => '100x100_smallsquare',\n        'url_vars'          => array(\n            'tag'    => '100x100_smallsquare',\n            'height' => '100',\n            'width'  => '100',\n        ),\n    );\n\n    return $ids;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Keep in mind that you’ll still need to incorporate a \u003Ccode>do_action( 'acm_tag', '100x100_smallsquare' );\u003C\u002Fcode> in your theme to display the ad tag.\u003C\u002Fp>\n\u003Cp>If you choose Google DFP Async as your provider, you’ll likely need to register additional ad tags, as we only package two default ad tags.\u003C\u002Fp>\n\u003Ch3>Custom Ad Provider Implementations\u003C\u002Fh3>\n\u003Cp>As mentioned previously, other ad code providers are supported with additional configuration. Here’s an example of the different filters you would use to configure the older version of Google DoubleClick For Publishers:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002F**\n * Define the default URL to be used when rendering ad codes\n *\u002F\nadd_filter( 'acm_default_url', 'acmx_filter_default_url' ) ;\nfunction acmx_filter_default_url( $url ) {\n    if ( 0 === strlen( $url )  ) {\n        return \"http:\u002F\u002Fad.doubleclick.net\u002Fadj\u002F%site_name%\u002F%zone1%;s1=%zone1%;s2=;pid=%permalink%;fold=%fold%;kw=;test=%test%;ltv=ad;pos=%pos%;dcopt=%dcopt%;tile=%tile%;sz=%sz%;\";\n    }\n}\n\n\u002F**\n * Whitelist the DFP URL to be used in ad tags. The whitelist\n * helps prevent execution of arbitrary scripts\n *\u002F\nadd_filter( 'acm_whitelisted_script_urls', 'acmx_filter_whitelisted_script_urls');\nfunction acmx_filter_whitelisted_script_urls( $whitelisted_urls ) {\n    $whitelisted_urls = array( 'ad.doubleclick.net' );\n    return $whitelisted_urls;\n}\n\n\u002F**\n * Define the different ad tags (locations) you'd like to use in your theme\n *\u002F\nadd_filter( 'acm_ad_tag_ids', 'acmx_ad_tags_ids' );\nfunction acmx_ad_tags_ids( $ad_tag_ids ) {\n    return array(\n        array(\n            'tag'      => '728x90-atf',\n            'url_vars' => array(\n                'sz'     => '728x90',\n                'fold'   => 'atf',\n                'width'  => '728',\n                'height' => '90',\n            ),\n        ),\n        array(\n            'tag'      => '728x90-btf',\n            'url_vars' => array(\n                'sz'     => '728x90',\n                'fold'   => 'btf',\n                'width'  => '728',\n                'height' => '90',\n            ),\n        ),\n        array(\n            'tag'      => '300x250-atf',\n            'url_vars' => array(\n                'sz'     => '300x250',\n                'fold'   => 'atf',\n                'width'  => '300',\n                'height' => '250',\n            ),\n        ),\n        array(\n            'tag'      => '300x250-btf',\n            'url_vars' => array(\n                'sz'     => '300x250',\n                'fold'   => 'btf',\n                'width'  => '300',\n                'height' => '250',\n            ),\n        ),\n        array(\n            'tag'      => '160x600-atf',\n            'url_vars' => array(\n                'sz'     => '160x600',\n                'fold'   => 'atf',\n                'width'  => '160',\n                'height' => '600',\n            ),\n        ),\n        array(\n            'tag'      => '1x1',\n            'url_vars' => array(\n                'sz'   => '1x1',\n                'fold' => 'int',\n                'pos'  => 'top',\n            ),\n        )\n    );\n}\n\nadd_filter( 'acm_output_html','acmx_filter_output_html', 5, 2 );\n\u002F**\n * Register the full script output to use with each ad tag.\n *\u002F\nfunction acmx_filter_output_html( $output_html, $tag_id ) {\n    $output_html = '\u003C!-- DFP %pos% %sz% ad tag --> \n    \u003Cscript>\nif ( typeof ord=='undefined' ) { ord=Math.random()*10000000000000000; }\nif ( typeof( dfp_tile ) == 'undefined' ) { dfp_tile=%tile% };\ndocument.write('\u003Cscript src=\"%url%ord=' + ord + '?\">\u003C\u002Fscript>');\n\u003C\u002Fscript>\u003Cnoscript>\u003Ca href=\"%url%ord=%random%?\" target=\"_blank\">\u003Cimg src=\"%url%ord=%random%?\" width=\"%width%\" height=\"%height%\" border=\"0\" alt=\">\u003C\u002Fa>\u003C\u002Fnoscript>\n\u003C!-- \u002F\u002FDFP %pos% %sz% tag -->';\n    return $output_html;\n}\n\nadd_filter('acm_output_tokens', 'acmx_filter_output_tokens', 5, 3 );\n\u002F**\n * Fine tune our output tokens.\n *\n * This is the real example of how easily you can modify output\n * depending on your ad network specs.\n *\u002F\nfunction acmx_filter_output_tokens( $output_tokens, $tag_id, $code_to_display ) {\n    global $dfp_tile;\n    global $dfp_ord;\n    global $dfp_pos;\n    global $dfp_dcopt;\n    global $wp_query;\n\n    \u002F\u002F We can't really rely on get_permalink() so use $_SERVER['REQUEST_URI] as bulletproof solution for generating unique pids\n    $link = strlen( $_SERVER['REQUEST_URI'] ) > 1 ? sanitize_key( $_SERVER['REQUEST_URI'] ) : home_url();\n    $output_tokens['%permalink%'] = str_replace( array( '\u002F',':', '.' ), '', $link ); \n    $output_tokens['%random%']    = $dfp_ord;\n    $output_tokens['%tile%']      = ++$dfp_tile;\n    if (  false === $dfp_pos[ $code_to_display['url_vars']['sz'] ] ) {\n        $output_tokens['%pos%']                        = 'top';\n        $dfp_pos[ $code_to_display['url_vars']['sz'] ] = true;\n    } else {\n        $output_tokens['%pos%'] = 'bottom';\n    }\n    if ( ! $dfp_dcopt ) {\n        $output_tokens['%dcopt%'] = 'ist';\n        $dfp_dcopt                = true;\n    } else {\n        $output_tokens['%dcopt%'] = '';\n    }\n\n    $output_tokens['%test%'] = isset( $_GET['test'] ) && $_GET['test'] == 'on' ? 'on' : '';\n\n    return $output_tokens;\n}\n~~~\u003Ch3>Configuration Filters\u003C\u002Fh3>\nThere are some filters which allow you to easily customize the output of the plugin. You should place these filters in your theme's functions.php file or in another appropriate place.\n\n[Check out this gist](https:\u002F\u002Fgist.github.com\u002F1631131) to see all of the filters in action.\n\n### `acm_ad_tag_ids`\n\nAd tag IDs are used as a parameter when adding tags to your theme (e.g. `do_action( 'acm_tag', 'my_top_leaderboard' )`). The `url_vars` defined as part of each tag here will also be used to replace tokens in your default URL.\n\nArguments:\n* array $tag_ids array of default tag IDs\n\nExample usage: Add a new ad tag called 'my_top_leaderboard'\n\n~~~php\nadd_filter( 'acm_ad_tag_ids', 'my_acm_ad_tag_ids' );\nfunction my_acm_ad_tag_ids( $tag_ids ) {\n    $tag_ids[] = array(\n        'tag'      => 'my_top_leaderboard', \u002F\u002F tag_id\n        'url_vars' => array(\n            'sz'              => '728x90', \u002F\u002F %sz% token\n            'fold'            => 'atf', \u002F\u002F %fold% token\n            'my_custom_token' => 'something' \u002F\u002F %my_custom_token% will be replaced with 'something'\n        ),\n    );\n    return $tag_ids;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_default_url\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>Set the default tokenized URL used when displaying your ad tags. This filter is required.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* string $url The tokenized URL of Ad Code\u003C\u002Fp>\n\u003Cp>Example usage: Set your default ad code URL\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_default_url', 'my_acm_default_url' );\nfunction my_acm_default_url( $url ) {\n    if ( 0 === strlen( $url ) ) {\n        return \"http:\u002F\u002Fad.doubleclick.net\u002Fadj\u002F%site_name%\u002F%zone1%;s1=%zone1%;s2=;pid=%permalink%;fold=%fold%;kw=;test=%test%;ltv=ad;pos=%pos%;dcopt=%dcopt%;tile=%tile%;sz=%sz%;\";\n    }\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_output_html\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>The HTML outputted by the \u003Ccode>do_action( 'acm_tag', 'ad_tag_id' );\u003C\u002Fcode> call in your theme. Support multiple ad formats (e.g. JavaScript or simple HTML tags) by adjusting the HTML rendered for a given ad tag.\u003C\u002Fp>\n\u003Cp>The \u003Ccode>%url%\u003C\u002Fcode> token used in this HTML will be filled in with the URL defined with \u003Ccode>acm_default_url\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* string $output_html The original output HTML\u003Cbr \u002F>\n* string $tag_id Ad tag currently being accessed\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_output_html', 'my_acm_output_html', 10, 2 );\nfunction my_acm_output_html( $output_html, $tag_id ) {\n    switch ( $tag_id ) {\n        case 'my_leaderboard':\n            $output_html = '\u003Ca href=\"%url%\">\u003Cimg src=\"%image_url%\" \u002F>\u003C\u002Fa>';\n            break;\n        case 'rich_media_leaderboard':\n            $output_html = '\u003Cscript> \u002F\u002F omitted \u003C\u002Fscript>';\n            break;\n        default:\n            break;\n    }\n    return $output_html;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_register_provider_slug\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>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 using the \u003Ccode>acm_register_provider_slug\u003C\u002Fcode> filter to register those that may be included as part of your theme or another plugin.\u003C\u002Fp>\n\u003Cp>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.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* object $providers An object containing the current registered providers.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_register_provider_slug', 'my_acm_register_provider_slug' );\nfunction my_acm_register_provider_slug( $providers ) {\n    $providers->new_provider_slug = array(\n        'provider' => 'My_New_Ad_Company_ACM_Provider',\n        'table'    => 'My_New_Ad_Company_ACM_WP_List_Table'\n    );\n\n    return $providers;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_whitelisted_script_urls\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>A security filter to define a safelist for which ad code script URLs can be added in the admin.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* array $whitelisted_urls Existing whitelisted ad code URLs\u003C\u002Fp>\n\u003Cp>Example usage: Allow DoubleClick for Publishers ad codes to be used\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_whitelisted_script_urls', 'my_acm_safelisted_script_urls' );\nfunction my_acm_safelisted_script_urls( $safelisted_urls ) {\n    $safelisted_urls = array( 'ad.doubleclick.net' );\n    return $safelisted_urls;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_output_tokens\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>Output tokens can be registered depending on the needs of your setup. Tokens defined here will be replaced in the ad tag’s tokenized URL in addition to the tokens already registered with your tag ID.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* array $output_tokens Any existing output tokens\u003Cbr \u002F>\n* string $tag_id Unique tag ID\u003Cbr \u002F>\n* array $code_to_display Ad Code that matched conditionals\u003C\u002Fp>\n\u003Cp>Example usage: Test to determine whether you’re in test or production by passing ?test=on query argument\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_output_tokens', 'my_acm_output_tokens', 10, 3 );\nfunction my_acm_output_tokens( $output_tokens, $tag_id, $code_to_display ) {\n    $output_tokens['%test%'] = isset( $_GET['test'] ) && $_GET['test'] == 'on' ? 'on' : '';\n    return $output_tokens;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_whitelisted_conditionals\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>Extend the list of usable conditional functions with your own awesome ones. We safelist these so users can’t execute random PHP functions.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* array $conditionals Default conditionals\u003C\u002Fp>\n\u003Cp>Example usage: Register a few custom conditional callbacks\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_whitelisted_conditionals', 'my_acm_safelisted_conditionals' );\nfunction my_acm_safelisted_conditionals( $conditionals ) {\n    $conditionals[] = 'my_is_post_type';\n    $conditionals[] = 'is_post_type_archive';\n    $conditionals[] = 'my_page_is_child_of';\n\n    return $conditionals;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_conditional_args\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>For certain conditionals (\u003Ccode>has_tag()\u003C\u002Fcode>, \u003Ccode>has_category()\u003C\u002Fcode>), you might need to pass additional arguments.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* array $cond_args Existing conditional arguments\u003Cbr \u002F>\n* string $cond_func Conditional function (\u003Ccode>is_category()\u003C\u002Fcode>, \u003Ccode>is_page()\u003C\u002Fcode>, etc.)\u003C\u002Fp>\n\u003Cp>Example usage: \u003Ccode>has_category()\u003C\u002Fcode> and \u003Ccode>has_tag()\u003C\u002Fcode> use \u003Ccode>has_term()\u003C\u002Fcode>, which requires the object ID to function properly.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_conditional_args', 'my_acm_conditional_args', 10, 2 );\nfunction my_acm_conditional_args( $cond_args, $cond_func ) {\n    global $wp_query;\n\n    \u002F\u002F The `has_category()` and `has_tag()` functions call the `has_term()` function.\n    \u002F\u002F We should pass queried object id for it to produce correct result.\n    if ( in_array( $cond_func, array( 'has_category', 'has_tag' ) ) && $wp_query->is_single == true ) {\n        $cond_args[] = $wp_query->queried_object->ID;\n    }\n\n    \u002F\u002F my_page_is_child_of is our custom WP conditional tag and we have to pass queried object ID to it.\n    if ( in_array( $cond_func, array( 'my_page_is_child_of' ) ) && $wp_query->is_page ) {\n        $cond_args[] = $cond_args[] = $wp_query->queried_object->ID;\n    }\n\n    return $cond_args;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_display_ad_codes_without_conditionals\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>Change the behavior of Ad Code Manager so that ad codes without conditionals display on the front end. The default behavior is that each ad code requires a conditional to be included in the presentation logic.\u003C\u002Fp>\n\u003Cp>Arguments:\u003Cbr \u002F>\n* bool $behavior Whether or not to display the ad codes that don’t have conditionals\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_display_ad_codes_without_conditionals', '__return_true' );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_provider_slug\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>By default, we use our bundled doubleclick_for_publishers config (check it in \u003Ccode>\u002Fproviders\u002Fdoubleclick-for-publishers.php\u003C\u002Fcode>). If you want to add your own flavor of DFP or even implement configuration for another ad network, you’d have to apply a filter to correct the slug.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter(\n    'acm_provider_slug',\n    function() {\n        return 'my-ad-network-slug';\n    }\n);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_logical_operator\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>By default, the logical operator is set to “OR”, that is, ad code will be displayed if at least one conditional returns true.\u003Cbr \u002F>\nYou can change it to “AND”, so that the ad code will be displayed only if ALL the conditionals match.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter(\n    'acm_logical_operator',\n    function() {\n        return 'AND';\n    }\n);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_manage_ads_cap\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>By default, the user has to have \u003Ccode>manage_options\u003C\u002Fcode> cap. This filter comes in handy if you want to relax the requirements.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter(\n    'acm_manage_ads_cap',\n    function( $cap ) {\n        return 'edit_others_posts';\n    }\n);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_allowed_get_posts_args\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>This filter is only for edge cases. Most likely, you won’t have to touch it. Allows to include additional query args for \u003Ccode>Ad_Code_Manager->get_ad_codes()\u003C\u002Fcode> method.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter(\n    'acm_allowed_get_posts_args',\n    function( $args_array ) {\n        return array( 'offset', 'exclude' );\n    }\n);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_ad_code_count\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>By default, the total number of ad codes to get is 50, which is reasonable for any small to mid-sized site. However, in certain cases, you would want to increase the limit. This will affect \u003Ccode>Ad_Code_Manager->get_ad_codes()\u003C\u002Fcode> \u003Ccode>numberposts\u003C\u002Fcode> query argument.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter(\n    'acm_ad_code_count',\n    function( $total ) {\n        return 100;\n    }\n);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_list_table_columns\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>This filter can alter table columns that are displayed in ACM UI.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_list_table_columns', 'my_acm_list_table_columns' );\nfunction my_acm_list_table_columns( $columns ) {\n    $columns = array(\n        'id'           => __( 'ID', 'ad-code-manager' ),\n        'name'         => __( 'Name', 'ad-code-manager' ),\n        'priority'     => __( 'Priority', 'ad-code-manager' ),\n        'conditionals' => __( 'Conditionals', 'ad-code-manager' ),\n    );\n\n    return $columns;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>\u003Ccode>acm_ad_code_args\u003C\u002Fcode>\u003C\u002Fh3>\n\u003Cp>This filter comes in pair with the previous one. It should return an array of ad network-specific parameters. E.g. in \u003Ccode>acm_list_table_columns\u003C\u002Fcode> example, we have ‘id’, ‘name’, ‘priority’, and ‘conditionals’. All of them except ‘name’ are generic for Ad Code Manager. Hence, \u003Ccode>acm_provider_columns\u003C\u002Fcode> should return only “name”.\u003C\u002Fp>\n\u003Cp>“editable” and “required” indicate whether this field should be editable and required.\u003C\u002Fp>\n\u003Cp>Example usage:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>add_filter( 'acm_ad_code_args', 'my_acm_ad_code_args' );\nfunction my_acm_ad_code_args( $args ) {\n    $args = array(\n        array(\n            'key'      => 'name',\n            'label'    => __( 'Name', 'ad-code-manager' ),\n            'editable' => true,\n            'required' => true,\n        ),\n    );\n\n    return $args;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Change Log\u003C\u002Fh3>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FAutomattic\u002Fad-code-manager\u002Fblob\u002Fmaster\u002FCHANGELOG.md\" rel=\"nofollow ugc\">View the change log\u003C\u002Fa>.\u003C\u002Fp>\n","Manage your ad codes through the WordPress admin safely and easily.",50,30470,0,"2026-01-06T15:32:00.000Z","6.9.4","6.4","7.4",[19,20,21,22,23],"ad-codes","ads","adsense","advertising","dfp","https:\u002F\u002Fwordpress.org\u002Fplugins\u002Fad-code-manager\u002F","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fad-code-manager.0.8.0.zip",100,null,"2026-03-15T15:16:48.613Z",[],{"slug":31,"display_name":7,"profile_url":8,"plugin_count":32,"total_installs":33,"avg_security_score":34,"avg_patch_time_days":35,"trust_score":36,"computed_at":37},"automattic",213,19158100,92,1384,73,"2026-04-03T23:18:18.197Z",[39,61,81,98,115],{"slug":40,"name":41,"version":42,"author":43,"author_profile":44,"description":45,"short_description":46,"active_installs":47,"downloaded":48,"rating":49,"num_ratings":50,"last_updated":51,"tested_up_to":52,"requires_at_least":53,"requires_php":54,"tags":55,"homepage":58,"download_link":59,"security_score":60,"vuln_count":13,"unpatched_count":13,"last_vuln_date":27,"fetched_at":28},"adsense-in-post-ads-by-oizuled","In-Post Ads","2.0.4","AMP-MODE","https:\u002F\u002Fprofiles.wordpress.org\u002Fampmode\u002F","\u003Cp>The In-Post Ads plugin allows you to save your most used ad codes, and insert them as a shortcode in your pages or posts.\u003C\u002Fp>\n\u003Cp>You may already use a plugin to display your ads in a widgetized area of your page such as the left or right sidebars, or in the header or footer of your page. While this does get the ads on the page, your site visitors are not likely to click on them.\u003C\u002Fp>\n\u003Cp>This plugin creates shortcodes, which you can use inside the body of any page or post to display an advertisement. This is where your reader’s eyes are looking anyway, and it will increase the odds that they will click on the ad.\u003C\u002Fp>\n","A plugin to display ads inside your pages or posts.",700,68319,94,3,"2023-05-03T19:25:00.000Z","6.2.9","3.1","",[56,20,21,22,57],"ad","google","https:\u002F\u002Famplifyplugins.com","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fadsense-in-post-ads-by-oizuled.2.0.4.zip",85,{"slug":62,"name":63,"version":64,"author":65,"author_profile":66,"description":67,"short_description":68,"active_installs":69,"downloaded":70,"rating":26,"num_ratings":71,"last_updated":72,"tested_up_to":73,"requires_at_least":74,"requires_php":54,"tags":75,"homepage":79,"download_link":80,"security_score":60,"vuln_count":13,"unpatched_count":13,"last_vuln_date":27,"fetched_at":28},"monetizemore-ads-txt","Ads.txt","1.2","brandongains","https:\u002F\u002Fprofiles.wordpress.org\u002Fdrewazarias\u002F","\u003Cp>The programmatic advertising industry is full of fraud, which remains an ever present problem.  The solution developed by the Interactive Advertising Bureau (IAB) for all the fraudulent online activities taking place is called the Authorized Digital Sellers project or Ads.txt for short. This ads.txt method, battles bot traffic that ends up viewing and clicking on ads, is secure, and very easy to implementat for publishers. Our Ads.txt WordPress plugin will help you implement and edit your ads.txt file via one easy-to-use interface to make sure your site is validated for each of your ad network partners like Google AdSense, Ad Exchange and more.\u003C\u002Fp>\n","Easily edit your ads.txt files and ensure your site is validated for each of your ad network partners like Google Adsense and many more.",200,7953,1,"2018-06-02T06:01:00.000Z","4.8.28","4.6",[76,21,77,23,78],"ads-txt","adx","doubleclick-for-publishers","http:\u002F\u002Fwww.monetizemore.com\u002Fads-txt-wordpress-plug-in\u002F","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fmonetizemore-ads-txt.zip",{"slug":82,"name":83,"version":53,"author":84,"author_profile":85,"description":86,"short_description":87,"active_installs":26,"downloaded":88,"rating":26,"num_ratings":71,"last_updated":89,"tested_up_to":90,"requires_at_least":91,"requires_php":54,"tags":92,"homepage":95,"download_link":96,"security_score":60,"vuln_count":71,"unpatched_count":13,"last_vuln_date":97,"fetched_at":28},"ad-buttons","Ad Buttons","mindnl","https:\u002F\u002Fprofiles.wordpress.org\u002Fmindnl\u002F","\u003Cp>The Ad Buttons plugin displays a number of graphical ads in a sidebar widget\u003C\u002Fp>\n\u003Cp>The current version contains the following functionality:\u003C\u002Fp>\n\u003Cp>Add new ad buttons:\u003Cbr \u002F>\nBy entering image URL, link URL and link text a new ad button will be created\u003C\u002Fp>\n\u003Cp>Enable\u002Fdisable individual ad buttons:\u003Cbr \u002F>\nEach ad button can be enabled or disabled from the admin panel\u003C\u002Fp>\n\u003Cp>Select how many ad buttons to display in the sidebar widget.\u003Cbr \u002F>\nDisplaying the ad buttons on your blog is done by randomly selecting ads from your total list of active ads. You can select how many ads are displayed on your blog.\u003C\u002Fp>\n\u003Cp>See how many times each ad button has been displayed and clicked.\u003Cbr \u002F>\nAd performance is an important measurement, especially when your ads link to affiliate programs. The number of views, clicks and CTR (click thru rate) are displayed for each ad button. Views by search engine bots are automatically filtered from the count.\u003C\u002Fp>\n\u003Cp>A Google AdSense 125 x 125 ad unit can be displayed by filling in your AdSense publisher ID. AdSense ad colors can be controlled right from the Ad Buttons admin panel.\u003C\u002Fp>\n","The Ad Buttons plugin displays a number of graphical ads in a sidebar widget.",58810,"2018-08-02T17:55:00.000Z","4.9.29","2.8.0",[20,21,22,93,94],"buttons","monetizing","http:\u002F\u002Fadbuttons.net\u002F","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fad-buttons.3.1.zip","2015-05-08 00:00:00",{"slug":99,"name":100,"version":101,"author":102,"author_profile":103,"description":104,"short_description":105,"active_installs":26,"downloaded":106,"rating":26,"num_ratings":50,"last_updated":107,"tested_up_to":15,"requires_at_least":108,"requires_php":17,"tags":109,"homepage":113,"download_link":114,"security_score":26,"vuln_count":13,"unpatched_count":13,"last_vuln_date":27,"fetched_at":28},"ad-commander","Ad Commander – Ad Manager for Banners, AdSense, Ad Networks","1.1.25","wildoperation","https:\u002F\u002Fprofiles.wordpress.org\u002Fwildoperation\u002F","\u003Cp>Ad Commander is a complete ad management plugin for WordPress. With Ad Commander, users can quickly create custom banner image ads, Google AdSense ads, Amazon Associates ads, and ads for other affiliate ad networks.\u003C\u002Fp>\n\u003Cp>Create groups of rotating banner ads or randomly displaying ads. Insert ads with shortcodes, template tags, blocks, or automatic placements. Inject scripts into the header or footer of your site.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>AdSense users:\u003C\u002Fstrong> Ad Commander integrates directly with your AdSense account to make implementing AdSense and AMP ads quick and easy. Simply connect an account and choose from a searchable, sortable list of ad units. Alternatively, build your ads manually or paste in code.\u003C\u002Fp>\n\u003Cp>Some key features of Ad Commander include:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Create individual ads or groups of randomizing, rotating, or manually sorted ads\u003C\u002Fli>\n\u003Cli>AdSense ad type with direct AdSense account integration, manually built ad units, or simple code pasting\u003C\u002Fli>\n\u003Cli>Track impressions and clicks and generate reports for ads\u003C\u002Fli>\n\u003Cli>Support for AMP ads with amp-pixel and amp-analytics tracking\u003C\u002Fli>\n\u003Cli>Inject ads or groups using shortcodes, template tags, blocks, or automatic placements\u003C\u002Fli>\n\u003Cli>Conditionally display ads with content targeting options\u003C\u002Fli>\n\u003Cli>Display required labels above ads\u003C\u002Fli>\n\u003Cli>Add custom code before and after ads or groups\u003C\u002Fli>\n\u003Cli>Dynamically create an ads.txt and manage it in the WordPress admin\u003C\u002Fli>\n\u003Cli>Familiar WordPress interface\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwpadcommander.com\u002Fdocumentation\u002F?utm_source=wordpressorg&utm_medium=link&utm_campaign=readme\" rel=\"nofollow ugc\">Documentation\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fwpadcommander.com\u002Fsupport\u002F?utm_source=wordpressorg&utm_medium=link&utm_campaign=readme\" rel=\"nofollow ugc\">Support\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch3>Demo Video\u003C\u002Fh3>\n\u003Cspan class=\"embed-youtube\" style=\"text-align:center; display: block;\">\u003Ciframe loading=\"lazy\" class=\"youtube-player\" width=\"750\" height=\"422\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FdCQHwTIxfjM?version=3&rel=1&showsearch=0&showinfo=1&iv_load_policy=1&fs=1&hl=en-US&autohide=2&wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\">\u003C\u002Fiframe>\u003C\u002Fspan>\n\u003Ch3>Connecting AdSense\u003C\u002Fh3>\n\u003Cspan class=\"embed-youtube\" style=\"text-align:center; display: block;\">\u003Ciframe loading=\"lazy\" class=\"youtube-player\" width=\"750\" height=\"422\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FTTR95aFhLls?version=3&rel=1&showsearch=0&showinfo=1&iv_load_policy=1&fs=1&hl=en-US&autohide=2&start=4&wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\">\u003C\u002Fiframe>\u003C\u002Fspan>\n\u003Ch3>Creating rotating banner ads\u003C\u002Fh3>\n\u003Cspan class=\"embed-youtube\" style=\"text-align:center; display: block;\">\u003Ciframe loading=\"lazy\" class=\"youtube-player\" width=\"750\" height=\"422\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FNpPgFlP0T0g?version=3&rel=1&showsearch=0&showinfo=1&iv_load_policy=1&fs=1&hl=en-US&autohide=2&wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\">\u003C\u002Fiframe>\u003C\u002Fspan>\n\u003Cp>Ad Commander core is free to download and use. Ad Commander Pro has additional advanced features. \u003Ca href=\"https:\u002F\u002Fwpadcommander.com\u002F?utm_source=wordpressorg&utm_medium=link&utm_campaign=readme\" rel=\"nofollow ugc\">Visit our website to learn more about Ad Commander Pro.\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>Some Pro features include:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Priority email support\u003C\u002Fli>\n\u003Cli>Automatically convert AdSense ads to AMP ads\u003C\u002Fli>\n\u003Cli>Google Analytics (GA4) or other third-party analytics tracking for impressions and clicks\u003C\u002Fli>\n\u003Cli>Expire ads by date or maximum stats\u003C\u002Fli>\n\u003Cli>Advanced automatic placement positions\u003C\u002Fli>\n\u003Cli>Automatic placements for bbPress and BuddyPress\u003C\u002Fli>\n\u003Cli>Lazy load ads when they enter the viewport\u003C\u002Fli>\n\u003Cli>Popup ads\u003C\u002Fli>\n\u003Cli>Visitor targeting options\u003C\u002Fli>\n\u003Cli>Geotargeting with MaxMind IP databases\u003C\u002Fli>\n\u003Cli>Content and visitor targeting for groups and automatic placements\u003C\u002Fli>\n\u003Cli>Display groups in a grid layout\u003C\u002Fli>\n\u003Cli>Weighted or evenly distributed ad impressions\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwpadcommander.com\u002Ffeatures\u002F?utm_source=wordpressorg&utm_medium=link&utm_campaign=readme\" rel=\"nofollow ugc\">All Features\u003C\u002Fa>\u003C\u002Fp>\n","Insert image banner ads, Google AdSense, Amazon, affiliate ad networks. Rotate and randomize ad groups. Track impressions and clicks. Create ads.txt.",4113,"2026-03-09T20:13:00.000Z","6.2",[21,22,110,111,112],"amp","banners","rotate","https:\u002F\u002Fwpadcommander.com","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fad-commander.1.1.25.zip",{"slug":116,"name":117,"version":118,"author":119,"author_profile":120,"description":121,"short_description":122,"active_installs":26,"downloaded":123,"rating":26,"num_ratings":124,"last_updated":125,"tested_up_to":126,"requires_at_least":127,"requires_php":54,"tags":128,"homepage":129,"download_link":130,"security_score":60,"vuln_count":13,"unpatched_count":13,"last_vuln_date":27,"fetched_at":28},"radcontrol","AdControl","1.5","Derek Springer","https:\u002F\u002Fprofiles.wordpress.org\u002Fderekspringer\u002F","\u003Cp>Please note: this plugin is officially deprecated. If you are still interested in using this service please utilize \u003Ca href=\"https:\u002F\u002Fjetpack.com\u002Ffeatures\u002Ftraffic\u002Fads\u002F\" rel=\"nofollow ugc\">the offical Ads module included in Jetpack.\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>With traditional advertising relationships a publisher or blogger has two relationships and platforms–one for publishing and the other for advertising. AdControl combines the two partnerships into one.\u003C\u002Fp>\n\u003Cp>AdControl is a new service from Automattic that extends our advertising scale and know-how to eligible sites using WordPress. We believe it is a special partnership between the largest Internet publishing platform and our users. The team at AdControl and WordPress.com are very excited about the potential to help our self-hosted publishers to earn income from their sites with high quality ads and strong rates from advertisers.\u003C\u002Fp>\n\u003Cp>Make sure you \u003Ca href=\"https:\u002F\u002Fwordads.co\u002Fsignup\u002F\" rel=\"nofollow ugc\">apply to WordAds\u003C\u002Fa> for each site you want to run AdControl on.\u003C\u002Fp>\n\u003Cp>Requires \u003Ca href=\"https:\u002F\u002Fjetpack.com\u002F\" rel=\"nofollow ugc\">Jetpack\u003C\u002Fa> to be installed and connected. \u003Ca href=\"https:\u002F\u002Fjetpack.com\u002Fsupport\u002Fgetting-started-with-jetpack\u002F\" rel=\"nofollow ugc\">Help getting started.\u003C\u002Fa>\u003C\u002Fp>\n","Harness WordPress.com's advertising partners for your own website.",23117,5,"2021-02-11T20:37:00.000Z","5.6.17","3.4",[19,20,22],"https:\u002F\u002Fwordads.co\u002F","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fradcontrol.1.5.zip",{"attackSurface":132,"codeSignals":241,"taintFlows":276,"riskAssessment":317,"analyzedAt":322},{"hooks":133,"ajaxHandlers":225,"restRoutes":235,"shortcodes":236,"cronEvents":240,"entryPointCount":50,"unprotectedCount":13},[134,140,143,149,154,157,161,165,169,173,178,183,187,191,195,199,203,206,209,211,213,214,216,220],{"type":135,"name":136,"callback":137,"file":138,"line":139},"action","plugins_loaded","closure","ad-code-manager.php",45,{"type":135,"name":141,"callback":137,"file":138,"line":142},"admin_init",53,{"type":135,"name":144,"callback":145,"priority":146,"file":147,"line":148},"do_robotstxt","action_do_robotstxt",10,"src\\class-acm-provider.php",69,{"type":135,"name":150,"callback":151,"file":152,"line":153},"init","action_load_providers","src\\class-ad-code-manager.php",36,{"type":135,"name":150,"callback":155,"file":152,"line":156},"action_init",37,{"type":135,"name":158,"callback":159,"file":152,"line":160},"admin_menu","action_admin_menu",40,{"type":135,"name":162,"callback":163,"file":152,"line":164},"admin_enqueue_scripts","register_scripts_and_styles",41,{"type":135,"name":166,"callback":167,"file":152,"line":168},"widgets_init","register_widget",44,{"type":135,"name":170,"callback":171,"file":152,"line":172},"acm_tag","action_acm_tag",243,{"type":174,"name":175,"callback":176,"priority":124,"file":152,"line":177},"filter","acm_output_tokens","filter_output_tokens",244,{"type":174,"name":179,"callback":180,"file":181,"line":182},"acm_ad_code_args","filter_ad_code_args","src\\Providers\\class-doubleclick-for-publishers-async.php",101,{"type":174,"name":184,"callback":185,"priority":146,"file":181,"line":186},"acm_output_html","filter_output_html",102,{"type":174,"name":188,"callback":189,"priority":146,"file":181,"line":190},"acm_validate_ad_code","validate_unique_tag_id",103,{"type":174,"name":192,"callback":193,"file":181,"line":194},"acm_display_ad_codes_without_conditionals","__return_true",105,{"type":135,"name":196,"callback":197,"file":181,"line":198},"wp_head","action_wp_head",107,{"type":174,"name":200,"callback":201,"file":181,"line":202},"acm_list_table_columns","filter_columns",341,{"type":174,"name":200,"callback":201,"file":204,"line":205},"src\\Providers\\class-doubleclick-for-publishers.php",117,{"type":174,"name":179,"callback":180,"file":207,"line":208},"src\\Providers\\class-google-adsense-async.php",118,{"type":174,"name":192,"callback":193,"file":207,"line":210},119,{"type":174,"name":179,"callback":180,"file":212,"line":205},"src\\Providers\\class-google-adsense.php",{"type":174,"name":192,"callback":193,"file":212,"line":208},{"type":174,"name":200,"callback":201,"file":212,"line":215},185,{"type":135,"name":162,"callback":217,"file":218,"line":219},"enqueue_scripts","src\\UI\\class-conditional-autocomplete.php",42,{"type":135,"name":221,"callback":222,"file":223,"line":224},"current_screen","render","src\\UI\\class-contextual-help.php",28,[226,231],{"action":227,"nopriv":228,"callback":229,"hasNonce":230,"hasCapCheck":230,"file":152,"line":219},"acm_admin_action",false,"handle_admin_action",true,{"action":232,"nopriv":228,"callback":233,"hasNonce":230,"hasCapCheck":230,"file":218,"line":234},"acm_search_terms","ajax_search_terms",43,[],[237],{"tag":238,"callback":239,"file":152,"line":139},"acm-tag","shortcode",[],{"dangerousFunctions":242,"sqlUsage":243,"outputEscaping":245,"fileOperations":13,"externalRequests":13,"nonceChecks":50,"capabilityChecks":274,"bundledLibraries":275},[],{"prepared":13,"raw":13,"locations":244},[],{"escaped":246,"rawEcho":247,"locations":248},172,11,[249,253,255,257,258,260,263,265,267,269,271],{"file":250,"line":251,"context":252},"src\\class-acm-widget.php",48,"raw output",{"file":250,"line":254,"context":252},86,{"file":250,"line":256,"context":252},90,{"file":250,"line":49,"context":252},{"file":250,"line":259,"context":252},95,{"file":261,"line":262,"context":252},"src\\class-acm-wp-list-table.php",165,{"file":261,"line":264,"context":252},166,{"file":152,"line":266,"context":252},439,{"file":152,"line":268,"context":252},1002,{"file":181,"line":270,"context":252},175,{"file":272,"line":273,"context":252},"views\\ad-code-manager.tpl.php",132,2,[],[277,304],{"entryPoint":278,"graph":279,"unsanitizedCount":71,"severity":303},"handle_admin_action (src\\class-ad-code-manager.php:324)",{"nodes":280,"edges":299},[281,286,291,293,297],{"id":282,"type":283,"label":284,"file":152,"line":285},"n0","source","$_REQUEST",415,{"id":287,"type":288,"label":289,"file":152,"line":266,"wp_function":290},"n1","sink","echo() [XSS]","echo",{"id":292,"type":283,"label":284,"file":152,"line":266},"n2",{"id":294,"type":295,"label":296,"file":152,"line":266},"n3","transform","→ single_row()",{"id":298,"type":288,"label":289,"file":261,"line":264,"wp_function":290},"n4",[300,301,302],{"from":282,"to":287,"sanitized":230},{"from":292,"to":294,"sanitized":228},{"from":294,"to":298,"sanitized":228},"medium",{"entryPoint":305,"graph":306,"unsanitizedCount":71,"severity":303},"\u003Cclass-ad-code-manager> (src\\class-ad-code-manager.php:0)",{"nodes":307,"edges":313},[308,309,310,311,312],{"id":282,"type":283,"label":284,"file":152,"line":285},{"id":287,"type":288,"label":289,"file":152,"line":266,"wp_function":290},{"id":292,"type":283,"label":284,"file":152,"line":266},{"id":294,"type":295,"label":296,"file":152,"line":266},{"id":298,"type":288,"label":289,"file":261,"line":264,"wp_function":290},[314,315,316],{"from":282,"to":287,"sanitized":230},{"from":292,"to":294,"sanitized":228},{"from":294,"to":298,"sanitized":228},{"summary":318,"deductions":319},"The ad-code-manager plugin v0.8.0 exhibits a strong security posture based on the provided static analysis.  The absence of dangerous functions, external HTTP requests, and file operations, coupled with 100% of SQL queries using prepared statements and a high percentage of properly escaped output, are excellent indicators of secure coding practices. The presence of nonce and capability checks on its entry points further bolsters its defense against common web attacks.\n\nHowever, the taint analysis did reveal two flows with unsanitized paths. While no critical or high severity issues were flagged from these, unsanitized paths can potentially lead to path traversal or directory manipulation vulnerabilities if not handled with extreme care. The plugin's vulnerability history is notably clean, with zero recorded CVEs. This suggests a proactive approach to security by the developers or a lack of historically exploited weaknesses, which is a positive sign.\n\nIn conclusion, ad-code-manager v0.8.0 is generally well-secured, with its strengths lying in its robust handling of database queries and output escaping. The primary area of minor concern is the presence of unsanitized paths, which, although not leading to critical issues in this analysis, warrants attention to ensure complete immunity against path-related exploits. The lack of a vulnerability history is a significant strength.",[320],{"reason":321,"points":146},"Unsanitized paths found in taint analysis","2026-03-16T21:59:28.458Z",{"wat":324,"direct":343},{"assetPaths":325,"generatorPatterns":333,"scriptPaths":334,"versionParams":335},[326,327,328,329,330,331,332],"\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-conditional-autocomplete.js","\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-contextual-help.js","\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-plugin-actions.js","\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-settings.js","\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-tags.js","\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin.js","\u002Fwp-content\u002Fplugins\u002Fad-code-manager\u002Fsrc\u002FUI\u002Fcss\u002Facm-admin.css",[],[326,327,328,329,330,331],[336,337,338,339,340,341,342],"ad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-conditional-autocomplete.js?ver=","ad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-contextual-help.js?ver=","ad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-plugin-actions.js?ver=","ad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-settings.js?ver=","ad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin-tags.js?ver=","ad-code-manager\u002Fsrc\u002FUI\u002Fjs\u002Facm-admin.js?ver=","ad-code-manager\u002Fsrc\u002FUI\u002Fcss\u002Facm-admin.css?ver=",{"cssClasses":344,"htmlComments":348,"htmlAttributes":349,"restEndpoints":351,"jsGlobals":352,"shortcodeOutput":354},[345,346,347],"acm-conditional-autocomplete","acm-contextual-help","acm-plugin-actions",[],[350],"data-acm-provider-slug",[],[353],"Ad_Code_Manager",[355],"[acm-tag"]