| 1 |
<?php |
| 2 |
/** |
| 3 |
* Per-plugin identity for all three promo surfaces — the ONE file to edit when |
| 4 |
* copying this folder into a sibling WPXPO plugin. |
| 5 |
* |
| 6 |
* Read it via Notice::config(), never a bare require: it returns an array, so |
| 7 |
* require_once would give a second caller `true`. |
| 8 |
* |
| 9 |
* Still manual when porting (see README): the namespace in class-notice.php |
| 10 |
* and the text domain in __() — both compile-time, so neither can live here. |
| 11 |
*/ |
| 12 |
|
| 13 |
defined( 'ABSPATH' ) || exit; |
| 14 |
|
| 15 |
return array( |
| 16 |
|
| 17 |
// Builds promo keys, the nonce action, and every transient/query-arg name, |
| 18 |
// so two WPXPO plugins on one site never collide. |
| 19 |
'prefix' => 'optn', |
| 20 |
|
| 21 |
// Base for every image in promos/ — include the image folder, because |
| 22 |
// WPXPO plugins do not agree on its name (img/, images/, photos/…). |
| 23 |
// Promo entries then name only what is below it, and a port changes the |
| 24 |
// folder here instead of in every entry. |
| 25 |
'asset_url' => OPTN_URL . 'assets/images/', |
| 26 |
|
| 27 |
// Cross-plugin notice priority (xpo_active_notice_lists filter). |
| 28 |
'priority_key' => 'wow_optin', |
| 29 |
'priority' => 7, |
| 30 |
|
| 31 |
'brand_name' => 'WowOptin', |
| 32 |
'brand_color' => '#f97415', |
| 33 |
|
| 34 |
// Pro's headline price, quoted by any promo whose offer is the base price. |
| 35 |
// Formatted, not numeric: currency and symbol live here so a price change |
| 36 |
// is one edit for every surface. |
| 37 |
'pro_price' => '$41', |
| 38 |
|
| 39 |
// `source` records where the click came from, so it differs per surface — |
| 40 |
// one key per promos/ file. `campaign` is shared; `medium` is set per promo. |
| 41 |
'utm_source' => 'db-wowoptin-notice', |
| 42 |
'utm_source_hellobar' => 'db-wowoptin-hellobar', |
| 43 |
'utm_source_plugin_meta' => 'db-wowoptin-plugin-meta', |
| 44 |
'utm_campaign' => 'wowoptin-dashboard', |
| 45 |
|
| 46 |
); |
| 47 |
|