| 开发者 | codepeople |
|---|---|
| 更新时间 | 2026年11月25日 04:37 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
cprreftrack and cprreftracklatest) while keeping server-side first-touch attribution active.cp-referrer-and-conversions-tracking/ directory to the /wp-content/plugins/ directory (or upload the .zip file directly via Plugins > Add New > Upload Plugin).Feel free to contact us in the support forum. We will point you to an existing solution if one is available or add your request to our development roadmap.
Go to CP Referrer Tracking > General Settings, enable Delete All Plugin Data on Uninstall, and save your settings before deleting the plugin from the WordPress Plugins screen.
Register a custom conversion:
do_action( 'cpreftrack_register_conversion', 'my_custom_conversion_identifier', 'My Conversion ID or Data' );
Retrieve the current visitor's recorded referrer:
$referrer = apply_filters( 'cpreftrack_referrer', '' );
Customize how a conversion appears in the Conversions list:
add_filter( 'my_custom_conversion_identifier', 'my_custom_conversion_identifier_fn', 10, 1 );
function my_custom_conversion_identifier_fn( $text ) {
// Modify and escape the output as needed.
return esc_html( $text );
}
Customize the capability required to access plugin admin screens (defaults to manage_options):
add_filter( 'cpreftrack_capability', function() {
return 'manage_options';
} );
uninstall.php script with an opt-in setting to remove all plugin tables and options upon deletion.excanvas.min.js, and unscoped global CSS; all admin styles are cleanly scoped under .cprt-admin.ABSPATH guards to all PHP files, standardized capability checks (manage_options), moved all destructive and settings actions to POST with CSRF nonces and PRG redirects, added nonce verification and formula-injection protection to CSV exports, updated all dynamic SQL queries to $wpdb->prepare() with $wpdb->esc_like(), replaced unsafe unserialize() with JSON storage and allowed_classes => false fallback, and added HttpOnly, SameSite=Lax, and Secure attributes to tracking cookies.LIMIT/OFFSET pagination to all list tables, added database indexes via dbDelta(), and replaced full-table PHP stats loops with SQL GROUP BY aggregation.