Skip to content

Commit

Permalink
Kleinanzeigen/Verzeichnis Unterstützung
Browse files Browse the repository at this point in the history
  • Loading branch information
Dernerd committed Jun 12, 2024
1 parent 289d46c commit e2b5d75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions affiliateincludes/addons/directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/*
Plugin Name: Verzeichnis
Description: Affiliate-System-Plugin für das WordPress Verzeichnis-Plugin
Author URI: https://n3rds.work/docs/verzeichnis-handbuch/
Author URI: https://cp-psource.github.io/directory/
Depends: directory/loader.php
Class: Verzeichnis_Core
Class: Directory_Core
*/

define( 'AFF_DIRECTORY_ADDON', 1 );
Expand Down
14 changes: 7 additions & 7 deletions affiliateincludes/addons/kleinanzeigen.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
/*
Plugin Name: Kleinanzeigen
Description: Affiliate-System-Plugin für das PSOURCE-Kleinanzeigen-Plugin
Author URI: https://n3rds.work/docs/kleinanzeigen-handbuch/
Depends: kleinanzeigen/loader.php
Class: Kleinanzeigen_Core
Author URI: https://n3rds.work/docs/classifieds-handbuch/
Depends: classifieds/loader.php
Class: Classifieds_Core
*/

define( 'AFF_KLEINANZEIGEN_ADDON', 1 );

// Register actions only if Kleinanzeigen plugin is active.
if ( affiliate_is_plugin_active( 'kleinanzeigen/loader.php' ) || affiliate_is_plugin_active_for_network( 'kleinanzeigen/loader.php' ) ) {
if ( affiliate_is_plugin_active( 'classifieds/loader.php' ) || affiliate_is_plugin_active_for_network( 'classifieds/loader.php' ) ) {

add_action( 'kleinanzeigen_set_paid_member', 'cf_affiliate_new_paid', 10, 3 );
add_action( 'kleinanzeigen_affiliate_settings', 'cf_affiliate_settings' );
add_action( 'classifieds_set_paid_member', 'cf_affiliate_new_paid', 10, 3 );
add_action( 'classifieds_affiliate_settings', 'cf_affiliate_settings' );
}

function cf_affiliate_new_paid( $affiliate_settings, $user_id, $billing_type ) {
Expand Down Expand Up @@ -81,7 +81,7 @@ function cf_affiliate_new_paid( $affiliate_settings, $user_id, $billing_type ) {
'IP' => (isset($_SERVER['HTTP_X_FORWARD_FOR'])) ? esc_attr($_SERVER['HTTP_X_FORWARD_FOR']) : esc_attr($_SERVER['REMOTE_ADDR']),
//'HTTP_USER_AGENT' => esc_attr($_SERVER['HTTP_USER_AGENT'])
);
do_action( 'affiliate_purchase', $aff, $amount, 'paid:kleinanzeigen', $user_id, $note, $meta );
do_action( 'affiliate_purchase', $aff, $amount, 'paid:classifieds', $user_id, $note, $meta );

if ( defined( 'AFFILIATE_PAYONCE' ) && AFFILIATE_PAYONCE == 'yes' ) {

Expand Down

0 comments on commit e2b5d75

Please sign in to comment.