mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 22:54:03 +09:00
Important fix for first release
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
/***
|
||||
*** @add an impression to form
|
||||
***/
|
||||
add_action('um_before_form_is_loaded', 'um_add_page_view');
|
||||
function um_add_page_view($args){
|
||||
global $ultimatemember;
|
||||
extract($args);
|
||||
if ( isset( $form_id ) ) {
|
||||
if ( !isset( $impressions ) ) $impressions = 0;
|
||||
$ultimatemember->form->add_pageview( $form_id, $impressions );
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
*** @track a successful event
|
||||
***/
|
||||
add_action('track_approved_user_login', 'um_add_conversion');
|
||||
add_action('track_approved_user_registration', 'um_add_conversion');
|
||||
function um_add_conversion($args){
|
||||
global $ultimatemember;
|
||||
extract($args);
|
||||
$ultimatemember->form->add_conversion( $form_id );
|
||||
}
|
||||
Reference in New Issue
Block a user