Changeset 12776 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 11/09/2020 02:47:32 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r12745 r12776 2978 2978 function bp_get_taxonomy_common_labels() { 2979 2979 return array( 2980 'bp_type_name' => _x( ' Name', 'BP Type name label', 'buddypress' ),2980 'bp_type_name' => _x( 'Plural Name', 'BP Type name label', 'buddypress' ), 2981 2981 'bp_type_singular_name' => _x( 'Singular name', 'BP Type singular name label', 'buddypress' ), 2982 'bp_type_has_directory' => _x( ' Add Type-FilteredDirectory View', 'BP Type has directory checkbox label', 'buddypress' ),2982 'bp_type_has_directory' => _x( 'Has Directory View', 'BP Type has directory checkbox label', 'buddypress' ), 2983 2983 'bp_type_directory_slug' => _x( 'Custom type directory slug', 'BP Type slug label', 'buddypress' ), 2984 2984 ); … … 3087 3087 function bp_get_type_metadata_schema( $suppress_filters = false, $type_taxonomy = '' ) { 3088 3088 $schema = array( 3089 'bp_type_ name' => array(3090 'description' => __( 'The name of your type, at the plural form.', 'buddypress' ),3089 'bp_type_singular_name' => array( 3090 'description' => __( 'The name of this type in singular form. ', 'buddypress' ), 3091 3091 'type' => 'string', 3092 3092 'single' => true, 3093 3093 'sanitize_callback' => 'sanitize_text_field', 3094 3094 ), 3095 'bp_type_ singular_name' => array(3096 'description' => __( 'The name of your type, at the singularform.', 'buddypress' ),3095 'bp_type_name' => array( 3096 'description' => __( 'The name of this type in plural form.', 'buddypress' ), 3097 3097 'type' => 'string', 3098 3098 'single' => true, … … 3100 3100 ), 3101 3101 'bp_type_has_directory' => array( 3102 'description' => __( ' Add a list of members matching the member type available on the Members Directory page (e.g. site.url/members/type/teacher/).', 'buddypress' ),3102 'description' => __( 'Make a list matching this type available on the directory.', 'buddypress' ), 3103 3103 'type' => 'boolean', 3104 3104 'single' => true, … … 3106 3106 ), 3107 3107 'bp_type_directory_slug' => array( 3108 'label' => __( ' Custom type directoryslug', 'buddypress' ),3109 'description' => __( ' If you want to use a slug that is different from the Member Type ID above, enter it here.', 'buddypress' ),3108 'label' => __( 'Type slug', 'buddypress' ), 3109 'description' => __( 'Enter if you want the type slug to be different from its ID.', 'buddypress' ), 3110 3110 'type' => 'string', 3111 3111 'single' => true,
Note: See TracChangeset
for help on using the changeset viewer.