Skip to content

Instantly share code, notes, and snippets.

@lunule
Last active July 31, 2020 06:14
Show Gist options
  • Save lunule/387350544b894b2e9a38f13bce0c3f67 to your computer and use it in GitHub Desktop.
Save lunule/387350544b894b2e9a38f13bce0c3f67 to your computer and use it in GitHub Desktop.
[WooCommerce Memberships - membership plan object] #woocommerce-memberships #membership #object
MEMBERSHIP OBJECT
array(1) {
[0]=> object(WC_Memberships_User_Membership)#25232 (18) {
["id"]=> int(1828)
["plan_id"]=> int(1821)
["plan"]=> object(WC_Memberships_Membership_Plan)#25234 (14) {
["id"]=> int(1821)
["name"]=> string(9) "Group 202"
["slug"]=> string(9) "group-202"
["post"]=> object(WP_Post)#25235 (24) {
["ID"]=> int(1821)
["post_author"]=> string(2) "11"
["post_date"]=> string(19) "2020-07-30 16:14:30"
["post_date_gmt"]=> string(19) "2020-07-30 06:14:30"
["post_content"]=> string(0) ""
["post_title"]=> string(9) "Group 202"
["post_excerpt"]=> string(0) ""
["post_status"]=> string(7) "publish"
["comment_status"]=> string(6) "closed"
["ping_status"]=> string(6) "closed"
["post_password"]=> string(0) ""
["post_name"]=> string(9) "group-202"
["to_ping"]=> string(0) ""
["pinged"]=> string(0) ""
["post_modified"]=> string(19) "2020-07-30 16:33:01"
["post_modified_gmt"]=> string(19) "2020-07-30 06:33:01"
["post_content_filtered"]=> string(0) ""
["post_parent"]=> int(0)
["guid"]=> string(86) "https://staging2.quitsmokingaddiction.com.au/?post_type=wc_membership_plan&p=1821"
["menu_order"]=> int(0)
["post_type"]=> string(18) "wc_membership_plan"
["post_mime_type"]=> string(0) ""
["comment_count"]=> string(1) "0"
["filter"]=> string(3) "raw"
}
["product_ids":"WC_Memberships_Membership_Plan":private]=> NULL
["access_method_meta":protected]=> string(14) "_access_method"
["default_access_method":protected]=> string(9) "unlimited"
["access_length_meta":protected]=> string(14) "_access_length"
["access_start_date_meta":protected]=> string(18) "_access_start_date"
["access_end_date_meta":protected]=> string(16) "_access_end_date"
["product_ids_meta":protected]=> string(12) "_product_ids"
["members_area_sections_meta":protected]=> string(22) "_members_area_sections"
["email_content_meta":protected]=> string(14) "_email_content"
["rules":"WC_Memberships_Membership_Plan":private]=> array(0) { }
}
["user_id"]=> int(19)
["status"]=> string(10) "wcm-active"
["post"]=> object(WP_Post)#25236 (24) {
["ID"]=> int(1828)
["post_author"]=> string(2) "19"
["post_date"]=> string(19) "2020-07-30 18:41:11"
["post_date_gmt"]=> string(19) "2020-07-30 08:41:11"
["post_content"]=> string(0) ""
["post_title"]=> string(10) "Auto Draft"
["post_excerpt"]=> string(0) ""
["post_status"]=> string(10) "wcm-active"
["comment_status"]=> string(6) "closed"
["ping_status"]=> string(6) "closed"
["post_password"]=> string(16) "um_5f2287921089d"
["post_name"]=> string(10) "auto-draft"
["to_ping"]=> string(0) ""
["pinged"]=> string(0) ""
["post_modified"]=> string(19) "2020-07-30 19:17:33"
["post_modified_gmt"]=> string(19) "2020-07-30 09:17:33"
["post_content_filtered"]=> string(0) ""
["post_parent"]=> int(1821)
["guid"]=> string(86) "https://staging2.quitsmokingaddiction.com.au/?post_type=wc_user_membership&p=1828"
["menu_order"]=> int(0)
["post_type"]=> string(18) "wc_user_membership"
["post_mime_type"]=> string(0) ""
["comment_count"]=> string(1) "0"
["filter"]=> string(3) "raw"
}
["product":"WC_Memberships_User_Membership":private]=> NULL
["type":protected]=> string(17) "manually-assigned"
["start_date_meta":protected]=> string(11) "_start_date"
["end_date_meta":protected]=> string(9) "_end_date"
["cancelled_date_meta":protected]=> string(15) "_cancelled_date"
["paused_date_meta":protected]=> string(12) "_paused_date"
["paused_intervals_meta":protected]=> string(17) "_paused_intervals"
["product_id_meta":protected]=> string(11) "_product_id"
["order_id_meta":protected]=> string(9) "_order_id"
["previous_owners_meta":protected]=> string(16) "_previous_owners"
["renewal_login_token_meta":protected]=> string(20) "_renewal_login_token"
["locked_meta":protected]=> string(7) "_locked"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment