| @@ -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 | |