PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | includes/post-types.php +5 -3 2.30.04.16.9 View file →
@@ -16,10 +16,12 @@
16 16
17 17 /**
18 18 * Registers and sets up the Donation Forms (give_forms) custom post type
19 19 *
20 + * @since 4.0.0 updated menu_name to GiveWP
21 + * @since 1.0
22 + *
20 23 * @return void
21 - * @since 1.0
22 24 */
23 25 function give_setup_post_types() {
24 26
25 27 // Give Forms single post and archive options.
@@ -64,9 +66,9 @@
64 66 'search_items' => __( 'Search Forms', 'give' ),
65 67 'not_found' => __( 'No forms found.', 'give' ),
66 68 'not_found_in_trash' => __( 'No forms found in Trash.', 'give' ),
67 69 'parent_item_colon' => '',
68 - 'menu_name' => apply_filters( 'give_menu_name', __( 'Donations', 'give' ) ),
70 + 'menu_name' => apply_filters( 'give_menu_name', 'GiveWP'),
69 71 'name_admin_bar' => apply_filters( 'give_name_admin_bar_name', __( 'Donation Form', 'give' ) ),
70 72 ]
71 73 );
72 74
@@ -133,10 +135,10 @@
133 135 'capability_type' => 'give_payment',
134 136 'supports' => [ 'title' ],
135 137 'can_export' => true,
136 138 ];
139 +
137 140 register_post_type( 'give_payment', $payment_args );
138 -
139 141 }
140 142
141 143 add_action( 'init', 'give_setup_post_types', 1 );
142 144