Created
October 12, 2016 14:12
-
-
Save ramiabraham/289e63253accdcce5c817004ee5d2be1 to your computer and use it in GitHub Desktop.
Hooks for Paid Member Subscriptions - v 1.3.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hooks for wp-content/plugins//paid-member-subscriptions, generated on 2016-10-12. | |
Actions: | |
------------------ | |
do_action( 'pms_register_form_bottom' ); | |
do_action( 'pms_member_subscription_list_table_extra_tablenav', $which, $this->member, $this->existing_subscription_plan_ids ); | |
do_action( 'pms_submenu_page_members_before_' . $action, $this->request_data ); | |
do_action( 'pms_submenu_page_members_after_' . $action, $this->request_data ); | |
<?php do_action( 'pms_member_add_new_form_field' ); ?> | |
<?php do_action( 'pms_member_edit_form_field' ); ?> | |
<?php do_action( 'pms_payment_edit_form_field' ); ?> | |
<?php do_action( 'pms_reports_filters' ); ?> | |
<?php do_action( 'pms_reports_form_bottom' ); ?> | |
<?php do_action( 'pms_reports_page_bottom' ); ?> | |
<?php do_action( $this->menu_slug . '_tab_general_before_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_general_after_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_payments_before_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_payment_general_after_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_payment_gateways_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_payment_gateways_after_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_payments_after_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_messages_before_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_messages_after_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_emails_before_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_tab_emails_after_content', $this->options ); ?> | |
<?php do_action( $this->menu_slug . '_after_tabs', $this->options ); ?> | |
do_action( 'pms_before_register_post_type', $this->post_type ); | |
do_action( 'pms_save_post_' . $this->post_type, $post_id ); | |
do_action( 'pms_cpt_enqueue_admin_scripts_' . $this->post_type ); | |
do_action('pms_register_form_validation', $_POST); | |
do_action('pms_register_form_before_create_user', $user_data); | |
do_action('pms_register_form_after_create_user', $user_data); | |
do_action( 'pms_register_payment_free_subscription_plan', $user_data ); | |
do_action( 'pms_register_payment_amount_zero', $payment_data ); | |
do_action('pms_new_subscription_form_validation', $_POST ); | |
do_action('pms_upgrade_subscription_form_validation', $_POST ); | |
do_action('pms_renew_subscription_form_validation', $_POST ); | |
do_action('pms_cancel_subscription_form_validation', $_POST ); | |
do_action( 'pms_cancel_member_subscription_successful', $member_data, $member ); | |
do_action( 'pms_cancel_member_subscription_unsuccessful', $member_data, $member, $confirm_remove_subscription ); | |
do_action('pms_retry_payment_subscription_form_validation', $_POST ); | |
* @param array $payment_data_or_user_data - array containing either the user_data from the 'pms_register_payment_free_subscription_plan' do_action | |
* or the payment_data from the 'pms_register_payment_amount_zero' do_action | |
do_action( 'pms_free_subscription_before_upgrade_subscription', $member_subscription->id ); | |
do_action( 'pms_free_subscription_after_upgrade_subscription', $member_subscription->id ); | |
do_action( 'pms_password_reset', $user->ID, $new_pass ); | |
do_action( 'pms_member_before_remove_subscription', $this->user_id, $subscription_plan_id ); | |
do_action( 'pms_member_remove_subscription', $delete_result, $this->user_id, $subscription_plan_id ); | |
do_action( 'pms_member_update_subscription', $update_result, $this->user_id, $subscription_plan_id, $start_date, $expiration_date, $status ); | |
do_action( 'pms_member_replace_subscription', $update_result, $this->user_id, $new_subscription_plan_id, $old_subscription_plan_id ); | |
do_action( 'pms_member_add_subscription', $insert_result, $this->user_id, $subscription_plan_id, $start_date, $expiration_date, $status ); | |
do_action( 'pms_output_content_meta_box_' . $this->post_type . '_' . $this->id . '_before', $post ); | |
do_action( 'pms_output_content_meta_box_' . $this->post_type . '_' . $this->id, $post ); | |
do_action( 'pms_output_content_meta_box_' . $this->post_type . '_' . $this->id . '_after', $post ); | |
do_action( 'pms_save_meta_box_' . $this->post_type, $post_id ); | |
do_action( 'pms_meta_box_enqueue_admin_scripts_' . $this->id ); | |
do_action( $this->notificationId.'_before_notification_displayed', $current_user, $pagenow ); | |
do_action( $this->notificationId.'_notification_displayed', $current_user, $pagenow ); | |
do_action( $this->notificationId.'_after_notification_displayed', $current_user, $pagenow ); | |
do_action( $this->notificationId.'_before_notification_dismissed', $current_user ); | |
do_action( $this->notificationId.'_after_notification_dismissed', $current_user ); | |
do_action( 'pms_payment_updated', $update_result, $data, $this->id ); | |
do_action( 'pms_output_content_submenu_page_' . $this->menu_slug ); | |
do_action( 'pms_submenu_page_enqueue_admin_scripts_before_' . $this->menu_slug ); | |
do_action( 'pms_submenu_page_enqueue_admin_scripts_' . $this->menu_slug ); | |
do_action('pms_upgrade_subscription_form_top'); | |
do_action('pms_upgrade_subscription_form_bottom'); | |
do_action('pms_renew_subscription_form_top'); | |
do_action('pms_renew_subscription_form_bottom'); | |
do_action('pms_retry_payment_form_top'); | |
do_action('pms_retry_payment_form_bottom'); | |
do_action('pms_retrieve_password_key', $requested_user_login, $key); | |
do_action( 'pms_before_paypal_redirect', $paypal_link, $this, $settings ); | |
do_action( 'pms_paypal_web_accept_before_upgrade_subscription', $member_subscription->id, $payment_data, $post_data ); | |
do_action( 'pms_paypal_web_accept_after_upgrade_subscription', $member_subscription->id, $payment_data, $post_data ); | |
do_action( 'pms_paypal_ipn_listener_verified', $payment_data, $post_data ); | |
do_action( 'pms_payment_gateway_initialised', $this ); | |
do_action( 'pms_process_payment_' . $payment_gateway_slug, $payment_data, $settings ); | |
do_action( 'pms_before_paypal_redirect', $paypal_link, $this, $settings ); | |
do_action( 'pms_paypal_web_accept_before_upgrade_subscription', $member_subscription->id, $payment_data, $post_data ); | |
do_action( 'pms_paypal_web_accept_after_upgrade_subscription', $member_subscription->id, $payment_data, $post_data ); | |
do_action( 'pms_paypal_ipn_listener_verified', $payment_data, $post_data ); | |
do_action( 'pms_settings_page_payment_gateway_paypal_extra_fields', $options ); | |
<?php do_action( 'pms_edit_profile_form_before_fields' ); ?> | |
<?php do_action( 'pms_edit_form_form_after_fields' ); ?> | |
<?php do_action( 'pms_' . $form_name . '_form_top', $atts ); ?> | |
<?php do_action( 'pms_' . $form_name . '_form_bottom', $atts ); ?> | |
<?php do_action( 'pms_payment_history_table_header', $user_id, $payments ); ?> | |
<?php do_action( 'pms_payment_history_table_body', $user_id, $payments ); ?> | |
<?php do_action( 'pms_' . $form_name . '_form_top', $atts ); ?> | |
<?php do_action( 'pms_register_form_before_fields', $atts ); ?> | |
<?php do_action( 'pms_register_form_after_fields', $atts ); ?> | |
<?php do_action( 'pms_' . $form_name . '_form_bottom', $atts ); ?> | |
do_action('pms_update_check'); | |
Filters: | |
------------------ | |
$output .= apply_filters( 'pms_pb_subscription_plans_field_payment_attention_message', '<p class="pms-email-confirmation-payment-message wppb-success">You will be able to complete the payment after you have confirmed your e-mail address.</p>' ); | |
return apply_filters( 'wppb_'.$form_location.'_subscription_plans_field', $output, $form_location, $field, $user_id, $field_check_errors, $request_data ); | |
$output .= '<input name="pms_register" type="submit" value="' . apply_filters( 'pms_register_form_email_confirmation_submit_text', __( 'Subscribe', 'paid-member-subscriptions' ) ) . '" />'; | |
return apply_filters( 'pms_change_userlisting_expiration_date_format', $member->subscriptions[0]['start_date'] ); | |
$subscription_start_date .= '<div>'. apply_filters( 'pms_change_userlisting_expiration_date_format', $subscription_plan['start_date'] ) .'</div>'; | |
return apply_filters( 'pms_change_userlisting_expiration_date_format', $member->subscriptions[0]['expiration_date'] ); | |
$subscription_expiration_date .= '<div>'. apply_filters( 'pms_change_userlisting_expiration_date_format', $subscription_plan['expiration_date'] ) .'</div>'; | |
$output .= apply_filters( 'pms_list_table_' . $this->_args['plural'] . '_show_status_dot', '<span class="pms-status-dot ' . $member_subscription['status'] . '"></span>' ); | |
return apply_filters( 'pms_members_list_table_get_views', array( | |
$output .= apply_filters( 'pms_list_table_' . $this->_args['plural'] . '_show_status_dot', '<span class="pms-status-dot ' . $member_subscription['status'] . '"></span>' ); | |
$this->add_admin_notices( apply_filters( 'pms_validate_data_add_new_member', array(), $request_data ) ); | |
$this->request_data = apply_filters( 'pms_sanitize_request_data_add_new_member' , $request_data ); | |
$this->add_admin_notices( apply_filters( 'pms_validate_data_edit_member', array(), $request_data ) ); | |
return apply_filters( 'pms_payments_list_table_columns', $columns ); | |
return apply_filters( 'pms_payments_list_table_get_views', array( | |
$output = apply_filters( 'pms_list_table_' . $this->_args['plural'] . '_show_status_dot', '<span class="pms-status-dot ' . $item['status'] . '"></span>' ); | |
$args = apply_filters( 'pms_reports_get_filtered_payments_args', array( 'status' => 'completed', 'date' => array( $this->start_date, $this->end_date ), 'order' => 'ASC' ) ); | |
return apply_filters( 'pms_reports_get_filtered_results', $results, $this->start_date, $this->end_date ); | |
return apply_filters( $this->menu_slug . '_tabs', $tabs ); | |
$subscription_plan_status_dot = apply_filters( 'pms_list_table_subscription_plans_show_status_dot', '<span class="pms-status-dot ' . $subscription_plan->status . '"></span>' ); | |
return apply_filters( 'get_custom_bulk_actions_' . $this->post_type, array( | |
$pms_action = apply_filters( 'pms_action_add_new_subscription_plan', ( isset( $_GET['pms-action'] ) ? $_GET['pms-action'] : '' ) ); | |
$queryArgs = apply_filters('puc_request_info_query_args-'.$this->slug, $queryArgs); | |
$options = apply_filters('puc_request_info_options-'.$this->slug, array()); | |
$pluginInfo = apply_filters('puc_request_info_result-'.$this->slug, $pluginInfo, $result); | |
$this->args = apply_filters( 'pms_custom_post_type_args', $this->args, $this->post_type ); | |
'labels' => apply_filters( 'pms_register_post_type_args_labels', $labels, $this->post_type ) | |
register_post_type( $this->post_type, apply_filters( 'pms_register_post_type_' . $this->post_type , $args ) ); | |
$email_subject = apply_filters( 'pms_email_subject', $email_subject, $action, $user_info, $subscription_plan_id, $start_date, $expiration_date ); | |
$email_content = apply_filters( 'pms_email_content', $email_content, $action, $user_info, $subscription_plan_id, $start_date, $expiration_date ); | |
return apply_filters( 'pms_email_actions', $email_actions ); | |
return apply_filters( 'pms_email_general_options_defaults', $email_options ); | |
return apply_filters( 'pms_email_headers', $email_headers ); | |
return apply_filters( 'pms_email_subjects', $email_subjects ); | |
return apply_filters( 'pms_email_content', $email_content ); | |
$user_data = apply_filters('pms_register_form_user_data', $user_data, $_POST); | |
pms_errors()->add( 'subscription_plans', apply_filters( 'pms_error_subscription_plan_missing', __( 'Please select a subscription plan.', 'paid-member-subscriptions' ) ) ); | |
$amount = apply_filters( 'pms_register_payment_amount', $amount, $user_data, $subscription_plan ); | |
$payment_data = apply_filters( 'pms_register_payment_data', array( | |
pms_success()->add( 'subscription_plans', apply_filters( 'pms_upgrade_subscription_success', __( 'Your subscription has been successfully upgraded.', 'paid-member-subscriptions' ) ) ); | |
pms_success()->add( 'subscription_plans', apply_filters( 'pms_renewed_subscription_success', __( 'Your subscription has been successfully renewed.', 'paid-member-subscriptions' ) ) ); | |
$confirm_remove_subscription = apply_filters( 'pms_confirm_cancel_subscription', true, $member->user_id, trim( $_POST['subscription_plans'] ) ); | |
pms_success()->add( 'subscription_plans', apply_filters( 'pms_cancel_subscription_success', __( 'Your subscription has been successfully removed.', 'paid-member-subscriptions' ) ) ); | |
pms_errors()->add( 'subscription_plans', apply_filters( 'pms_cancel_subscription_error', __( 'Something went wrong. We could not cancel your subscription.', 'paid-member-subscriptions' ), $member_data, $member, $confirm_remove_subscription )); | |
return apply_filters( 'pms_request_form_location', $location, $_REQUEST ); | |
$url = add_query_arg( array( 'pmsscscd' => base64_encode('subscription_plans'), 'pmsscsmsg' => base64_encode( apply_filters( 'pms_register_subscription_success_message', __( 'Congratulations, you have successfully created an account.', 'paid-member-subscriptions' ) ) ) ), $url ); | |
return apply_filters( 'pms_get_redirect_url', $url, $location ); | |
$recoveruserMailMessage1 = apply_filters('pms_recover_password_message_content_sent_to_user1', $recoveruserMailMessage1, $requestedUserID, $requestedUserLogin, $requestedUserEmail); | |
$recoveruserMailMessageTitle1 = apply_filters('pms_recover_password_message_title_sent_to_user1', $recoveruserMailMessageTitle1, $requestedUserLogin); | |
$text = str_replace( '{{'.$merge_tag.'}}', apply_filters( 'pms_merge_tag_'.$merge_tag, '', $user_info, $subscription_plan_id, $start_date, $expiration_date, $status, $data ), $text ); | |
$available_merge_tags = apply_filters( 'pms_merge_tags', array( 'display_name', 'subscription_name' ) ); | |
echo $finalMessage = apply_filters($this->notificationId.'_notification_message','<div class="'. $this->notificationClass .'" >'.$this->notificationMessage.'</div>', $this->notificationMessage); | |
return apply_filters( 'pms_register_success_message', '<p>' . __( 'Congratulations, your account has been successfully created.', 'paid-member-subscriptions' ) . '</p>' ); | |
if( current_user_can( apply_filters( 'pms_register_form_display_current_user_capability', 'create_users' ) ) ) { | |
echo apply_filters( 'pms_register_form_already_a_user_message', '<p>' . __( 'You already have an account.', 'paid-member-subscriptions') . '</p>', $atts ); | |
echo apply_filters( 'pms_subscriptions_form_already_a_member', do_shortcode( '[pms-account show_edit_profile="no"]' ), $atts, $member ); | |
echo apply_filters( 'pms_subscriptions_form_not_logged_in_message', __( 'Only registered users can see this information.', 'paid-member-subscriptions' ) ); | |
return apply_filters( 'pms_member_account_not_logged_in', '<p>' . __( 'You must be logged in to view this information.', 'paid-member-subscriptions' ) . ' <a href="' . $atts["login_url"] . '">' . __( 'Log in', 'paid-member-subscriptions' ) . '</a></p>', $atts ); | |
return apply_filters( 'pms_member_account_not_logged_in', '<p>' . __( 'You must be logged in to view this information.', 'paid-member-subscriptions' ) . '</p>' , $atts ); | |
$output .= apply_filters( 'pms_member_account_not_member', '<p>' . __( 'You do not have any subscriptions attached to your account.', 'paid-member-subscriptions' ) . '</p>', $member ); | |
return apply_filters( 'pms_member_edit_profile_form_not_logged_in', '<p>' . __( 'You must be logged in to view this information.', 'paid-member-subscriptions' ) . '</p>' ); | |
$output .= wp_login_form( apply_filters( 'pms_login_form_args', $args ) ); | |
$output .= apply_filters( 'pms_login_form_logged_in_message', '<p class="pms-alert">' . sprintf( __( 'You are currently logged in as %s.', 'paid-member-subscriptions' ), $user->display_name ) . ' ' . $logout_url . '</p>', $user->ID, $user->display_name ); | |
$string .= '<a href="' . esc_url($args['register']) . '">' . apply_filters('pms_login_register_text', __('Register', 'paid-member-subscriptions')) . '</a>'; | |
$string .= '<a href="' . esc_url($args['lostpassword']) . '">' . apply_filters('pms_login_lostpass_text', __('Lost your password?', 'paid-member-subscriptions')) . '</a>'; | |
return apply_filters( 'pms_recover_password_confirmation_link_message', '<p>' . __( 'Please check your email for the confirmation link.', 'paid-member-subscriptions' ) . '</p>' ); | |
echo( apply_filters ('pms_recover_password_form_logged_in_message', '<p>' . __( 'You are already logged in.', 'paid-member-subscriptions' ) . '</p>', $atts, $member) ); | |
echo(apply_filters('pms_recover_password_form_password_changed_message', '<p>' . __('Your password was successfully changed!', 'paid-member-subscriptions') . '</p>')); | |
$redirect_message = apply_filters( 'pms_recover_pass_redirect_message', __('You will soon be redirected automatically.', 'paid-member-subscriptions') ); | |
echo( apply_filters ('pms_recover_password_form_invalid_key_message', '<p>' . __( 'The confirmation link has expired. Invalid key.', 'paid-member-subscriptions' ) . '</p>') ); | |
$message = apply_filters( 'pms_restrict_content_message', '<p>' . $args['message'] . '</p>', $args ); | |
$page_hook = add_submenu_page( $this->parent_slug, $this->page_title, $this->menu_title, apply_filters( 'pms_submenu_page_capability', $this->capability, $this->menu_slug ), $this->menu_slug, array( $this, 'output_content' ) ); | |
return do_shortcode(apply_filters('pms_restriction_message_non_members', $message, $content, $post, $user_ID)); | |
return do_shortcode(apply_filters('pms_restriction_message_logged_out', $message, $content, $post, $user_ID)); | |
$preview = wp_trim_words( $post_content, $length, apply_filters( 'pms_restricted_post_preview_more', __( '…' ) ) ); | |
$output .= apply_filters( 'pms_upgrade_subscription_before_form', '<p>' . sprintf( __( 'Upgrade %1$s to %2$s', 'paid-member-subscriptions' ), $subscription_plan->name, $subscription_plan_upgrades[0]->name ) . '</p>', $subscription_plan, $member ); | |
$output .= apply_filters( 'pms_upgrade_subscription_before_form', '<p>' . sprintf( __( 'Upgrade %s to:', 'paid-member-subscriptions' ), $subscription_plan->name ) . '</p>', $subscription_plan, $member ); | |
$output .= '<input type="submit" name="pms_upgrade_subscription" value="' . apply_filters( 'pms_upgrade_subscription_button_value', __( 'Upgrade Subscription', 'paid-member-subscriptions' ) ) . '" />'; | |
$output .= '<input type="submit" name="pms_redirect_back" value="' . apply_filters( 'pms_upgrade_subscription_go_back_button_value', __( 'Go back', 'paid-member-subscriptions' ) ) . '" />'; | |
return apply_filters( 'pms_the_content_member_upgrade_subscription', $output, $content, $user_id, $subscription_plan ); | |
$renewal_display_time = apply_filters( 'pms_output_subscription_plan_action_renewal_time', 15 ); | |
$output .= apply_filters( 'pms_renew_subscription_before_form', '<p>' . sprintf( __( 'Renew %s subscription. The subscription will be active until %s', 'paid-member-subscriptions' ), $subscription_plan->name, $renew_expiration_date ) . '</p>', $subscription_plan, $member ); | |
$output .= '<input type="submit" name="pms_renew_subscription" value="' . apply_filters( 'pms_renew_subscription_button_value', __( 'Renew Subscription', 'paid-member-subscriptions' ) ) . '" />'; | |
$output .= '<input type="submit" name="pms_redirect_back" value="' . apply_filters( 'pms_renew_subscription_go_back_button_value', __( 'Go back', 'paid-member-subscriptions' ) ) . '" />'; | |
return apply_filters( 'pms_the_content_member_renew_subscription', $output, $content, $user_id, $subscription_plan ); | |
$output .= apply_filters( 'pms_cancel_subscription_confirmation_message', '<p>' . sprintf( __( 'Are you sure you want to cancel your %s subscription? This action will remove the subscription.', 'paid-member-subscriptions' ) . '</p>', $subscription_plan->name ), $subscription_plan ); | |
$output .= '<input type="submit" name="pms_confirm_cancel_subscription" value="' . apply_filters( 'pms_cancel_subscription_button_value', __( 'Confirm', 'paid-member-subscriptions' ) ) . '" />'; | |
$output .= '<input type="submit" name="pms_redirect_back" value="' . apply_filters( 'pms_cancel_subscription_go_back_button_value', __( 'Go back', 'paid-member-subscriptions' ) ) . '" />'; | |
$output .= apply_filters( 'pms_retry_payment_subscription_confirmation_message', '<p>' . sprintf( __( 'Your %s subscription is still pending. Do you wish to retry the payment?', 'paid-member-subscriptions' ) . '</p>', $subscription_plan->name ), $subscription_plan ); | |
$output .= '<input type="submit" name="pms_confirm_retry_payment_subscription" value="' . apply_filters( 'pms_retry_payment_subscription_button_value', __( 'Retry payment', 'paid-member-subscriptions' ) ) . '" />'; | |
$output .= '<input type="submit" name="pms_redirect_back" value="' . apply_filters( 'pms_retry_payment_subscription_go_back_button_value', __( 'Go back', 'paid-member-subscriptions' ) ) . '" />'; | |
$args = apply_filters( 'pms_get_users_non_members_args', wp_parse_args( $args, $defaults ), $args, $defaults ); | |
return apply_filters( 'pms_get_users_non_members', $users, $args ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Congratulations, you have successfully upgraded your subscription.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Congratulations, you have successfully renewed your subscription.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Congratulations, you have successfully subscribed to our website.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Congratulations, you have successfully subscribed to our website.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Thank you for your payment. The upgrade may take a while to be processed.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Thank you for your payment. The renew may take a while to be processed.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Thank you for your payment. The subscription may take a while to get activated.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
pms_success()->add( $message_code, apply_filters( 'pms_message_gateway_payment_action', __( 'Thank you for your payment. The subscription may take a while to get activated.', 'paid-member-subscriptions' ), $payment->status, $payment_action, $payment ) ); | |
return apply_filters( 'pms_currencies', $currencies ); | |
$currencies = apply_filters('pms_currency_symbols', | |
$country_array = apply_filters( 'pms_get_countries', | |
if ( function_exists('apply_filters') ) apply_filters( 'pms_get_current_page_url', $page_url ); | |
return apply_filters( 'pms_format_price', $output, $price, $currency, $args ); | |
$args = apply_filters( 'pms_get_members_args', wp_parse_args( $args, $defaults ), $args, $defaults ); | |
return apply_filters( 'pms_get_members', $members, $args ); | |
return apply_filters( 'pms_member_statuses', array( | |
$args = apply_filters( 'pms_get_payments_args', wp_parse_args( $args, $defaults ), $args, $defaults ); | |
return apply_filters( 'pms_get_payments', $payments, $args ); | |
return apply_filters( 'pms_payment_statuses', array( | |
return apply_filters( 'pms_payment_types', array( | |
$output .= apply_filters( 'pms_output_payment_gateway_input_hidden', '<input type="hidden" name="pay_gate" value="' . ( $pms_settings['payments']['active_pay_gates'][0] != 'paypal_standard' ? $pms_settings['payments']['active_pay_gates'][0] : 'paypal_standard' ) . '" />', $pms_settings['payments']['active_pay_gates'][0] ); | |
$output .= apply_filters( 'pms_get_output_payment_gateways_before', '<h3>' . __( 'Select a Payment Method', 'paid-member-subscriptions' ) . '</h3>', $pms_settings ); | |
$output .= apply_filters( 'pms_output_payment_gateway_input_radio', '<input type="radio" name="pay_gate" value="' . $paygate_key . '" ' . checked( $default_gateway, $paygate_key, false ) . ' />', $paygate_key ); | |
return apply_filters( 'pms_get_output_payment_gateways', $output, $pms_settings ); | |
$output .= apply_filters( 'pms_subscription_plan_output', $subscription_plan_output, $subscription_plan ); | |
$output .= apply_filters( 'pms_subscription_plan_output', $subscription_plan_output, $subscription_plan ); | |
$date_format = apply_filters( 'pms_output_subscription_plan_date_format', get_option('date_format') ); | |
$output .= '<span class="pms-subscription-plan-expiration">' . apply_filters( 'pms_output_subscription_plan_expiration_date', $expiration_date_output, $subscription_plan, $member_subscription, $member->user_id ) . '</span>'; | |
$output .= apply_filters( 'pms_output_subscription_plan_before_actions', '', $subscription_plan, $member_subscription ); | |
$output .= apply_filters( 'pms_output_subscription_plan_action_upgrade', '<a href="' . esc_url( wp_nonce_url( add_query_arg( array( 'pms-action' => 'upgrade_subscription', 'subscription_plan' => $subscription_plan->id ) ), 'pms_member_nonce', 'pmstkn' ) ) . '">' . __( 'Upgrade', 'paid-member-subscriptions' ) . '</a>', $subscription_plan, $member_subscription, $member->user_id ); | |
$renewal_display_time = apply_filters( 'pms_output_subscription_plan_action_renewal_time', 15 ); | |
$output .= apply_filters( 'pms_output_subscription_plan_action_renewal', '<a href="' . esc_url( wp_nonce_url( add_query_arg( array( 'pms-action' => 'renew_subscription', 'subscription_plan' => $subscription_plan->id ) ), 'pms_member_nonce', 'pmstkn' ) ) . '">' . __( 'Renew', 'paid-member-subscriptions' ) . '</a>', $subscription_plan, $member_subscription, $member->user_id ); | |
$output .= apply_filters( 'pms_output_subscription_plan_action_cancel', '<a href="' . esc_url( wp_nonce_url( add_query_arg( array( 'pms-action' => 'cancel_subscription', 'subscription_plan' => $subscription_plan->id ) ), 'pms_member_nonce', 'pmstkn' ) ) . '">' . __( 'Cancel', 'paid-member-subscriptions' ) . '</a>', $subscription_plan, $member_subscription, $member->user_id ); | |
$output .= apply_filters( 'pms_output_subscription_plan_after_actions', '', $subscription_plan, $member_subscription ); | |
$output .= apply_filters( 'pms_output_subscription_plan_pending_message', '<span><i>' . __( 'Pending subscription', 'paid-member-subscriptions' ) . '</i></span>', $subscription_plan, $member_subscription ); | |
$output .= apply_filters( 'pms_output_subscription_plan_pending_retry_payment', '<i>' . '<div class="pms-action-retry-payment-wrapper"><a href="' . esc_url( wp_nonce_url( add_query_arg( array( 'pms-action' => 'retry_payment_subscription', 'subscription_plan' => $subscription_plan->id ) ), 'pms_member_nonce', 'pmstkn' ) ) . '">' . __( 'Retry payment', 'paid-member-subscriptions' ) . '</a></div>' . '</i>' ); | |
$output = '<div class="pms-subscription-plans-header"><span class="pms-subscription-plan-name">' . apply_filters( 'pms_subscription_plans_header_plan_name', __( 'Subscription' , 'paid-member-subscriptions' ) ) . '</span><span class="pms-subscription-plan-expiration">' . apply_filters( 'pms_subscription_plans_header_plan_expiration', __( 'Expires', 'paid-member-subscriptions' ) ) . '</span></div>' . $output; | |
return apply_filters( 'pms_output_subscription_plans', $output, $include, $exclude_id_group, $member, $pms_settings, $subscription_plans ); | |
$price_output = apply_filters( 'pms_subscription_plan_output_price', '<span class="pms-divider"> - </span>' . $price_output, $subscription_plan ); | |
$duration_output = apply_filters( 'pms_subscription_plan_output_duration_unlimited', '', $subscription_plan ); | |
$duration_output = apply_filters('pms_subscription_plan_output_duration_limited', '<span class="pms-divider"> / </span>' . $duration, $subscription_plan); | |
$duration_output = apply_filters( 'pms_subscription_plan_output_duration', $duration_output, $subscription_plan ); | |
$payment->update_type( apply_filters( 'pms_paypal_standard_payment_type', 'web_accept_paypal_standard', $this, $settings ) ); | |
$paypal_link .= http_build_query( apply_filters( 'pms_paypal_standard_args', $paypal_args, $this, $settings ) ); | |
$payment_data = apply_filters( 'pms_paypal_ipn_payment_data', array( | |
$payment_gateways = apply_filters( 'pms_payment_gateways', array( | |
$payment_gateways[$slug]['display_name_user'] = apply_filters( 'pms_payment_gateway_' . $slug . '_display_name_user', $payment_gateway['display_name_user'] ); | |
$payment_gateways[$slug]['display_name_admin'] = apply_filters( 'pms_payment_gateway_' . $slug . '_display_name_admin', $payment_gateway['display_name_admin'] ); | |
$payment->update_type( apply_filters( 'pms_paypal_standard_payment_type', 'web_accept_paypal_standard', $this, $settings ) ); | |
$paypal_link .= http_build_query( apply_filters( 'pms_paypal_standard_args', $paypal_args, $this, $settings ) ); | |
$payment_data = apply_filters( 'pms_paypal_ipn_payment_data', array( | |
echo '<h4 class="pms-payment-gateway-title">' . apply_filters( 'pms_settings_page_payment_gateway_paypal_title', __( 'Paypal Standard', 'paid-member-subscriptions' ) ) . '</h4>'; | |
<label for="pms_user_login"><?php echo apply_filters( 'pms_edit_profile_form_label_user_login', __( 'Username *', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_user_email"><?php echo apply_filters( 'pms_register_form_label_user_email', __( 'E-mail *', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_first_name"><?php echo apply_filters( 'pms_register_form_label_first_name', __( 'First Name', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_last_name"><?php echo apply_filters( 'pms_register_form_label_last_name', __( 'Last Name', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_pass1"><?php echo apply_filters( 'pms_register_form_label_pass1', __( 'Password', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_pass2"><?php echo apply_filters( 'pms_register_form_label_pass2', __( 'Repeat Password', 'paid-member-subscriptions' ) ); ?></label> | |
<input name="pms_edit_profile" type="submit" value="<?php echo apply_filters( 'pms_edit_profile_form_submit_text', __( 'Edit Profile', 'paid-member-subscriptions' ) ); ?>" /> | |
echo apply_filters( 'pms_new_password_message', $pms_newpass_notification ); | |
<label for="pms_new_password"><?php echo apply_filters( 'pms_recover_password_form_label_new_password', __( 'Password', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_repeat_password"><?php echo apply_filters( 'pms_recover_password_form_label_repeat_password', __( 'Repeat Password', 'paid-member-subscriptions' ) ); ?></label> | |
<input name="pms_<?php echo $form_name; ?>" type="submit" value="<?php echo apply_filters( 'pms_' . $form_name . '_form_submit_text', __( 'Subscribe', 'paid-member-subscriptions' ) ); ?>" /> | |
<td class="pms-payment-date"><?php echo date( apply_filters( 'pms_payment_history_date_format', 'j F, Y H:i' ), strtotime( $payment->date ) ); ?></td> | |
<?php echo pms_paginate_links( apply_filters( 'pms_payment_history_table_paginate_links', array( 'id' => 'pms-payment-history', 'current' => max( 1, $page ), 'total' => ceil( pms_get_member_payments_count( $user_id ) / $number_per_page ) ) ) ); ?> | |
echo apply_filters( 'pms_recover_password_message', $pms_recover_notification ); | |
<label for="pms_username_email"><?php echo apply_filters( 'pms_recover_password_form_label_username_email', __( 'Username or Email', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_user_login"><?php echo apply_filters( 'pms_register_form_label_user_login', __( 'Username *', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_user_email"><?php echo apply_filters( 'pms_register_form_label_user_email', __( 'E-mail *', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_first_name"><?php echo apply_filters( 'pms_register_form_label_first_name', __( 'First Name', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_last_name"><?php echo apply_filters( 'pms_register_form_label_last_name', __( 'Last Name', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_pass1"><?php echo apply_filters( 'pms_register_form_label_pass1', __( 'Password *', 'paid-member-subscriptions' ) ); ?></label> | |
<label for="pms_pass2"><?php echo apply_filters( 'pms_register_form_label_pass2', __( 'Repeat Password *', 'paid-member-subscriptions' ) ); ?></label> | |
<input name="pms_<?php echo $form_name; ?>" type="submit" value="<?php echo apply_filters( 'pms_' . $form_name . '_form_submit_text', __( 'Register', 'paid-member-subscriptions' ) ); ?>" /> | |
'documentation' => '<a href="' . esc_url( apply_filters( 'pms_docs_url', 'http://www.cozmoslabs.com/docs/paid-member-subscriptions/' ) ) . '" title="' . esc_attr( __( 'View Documentation', 'paid-member-subscriptions' ) ) . '">' . __( 'Documentation', 'paid-member-subscriptions' ) . '</a>', | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment