PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | integrations/paid-membership-subscriptions/includes/functions.php +33 -0 5.7.2 → 6.0.3 View file →
@@ -1,0 +1,33 @@
1 +<?php
2 +/**
3 + * Functions
4 + *
5 + * @package AutomatorWP\Paid_Membership_Subscriptions\Functions
6 + * @since 1.0.0
7 + */
8 +// Exit if accessed directly
9 +if( !defined( 'ABSPATH' ) ) exit;
10 +
11 +
12 +/**
13 + * Get subscription name of specified subscription id
14 + *
15 + * @since 1.0.0
16 + *
17 + * @param int $subscription_plan_id
18 + *
19 + * @return array
20 + */
21 +function automatorwp_pms_get_subscription_name( $subscription_plan_id ) {
22 +
23 + // Empty title if no ID provided
24 + if( absint( $subscription_plan_id ) === 0 ) {
25 + return '';
26 + }
27 +
28 + $subscription_plan = pms_get_subscription_plan( $subscription_plan_id );
29 + $subscription_plan_name = $subscription_plan->name;
30 +
31 + return $subscription_plan_name;
32 +
33 +}