Skip to content

Commit 08d78a8

Browse files
davidsherlockdavidsherlock
authored andcommitted
readme improvements
1 parent f4a1e25 commit 08d78a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ table. Here's how to use it:
3737
```php
3838
// Example usage of register_inline_table_post_type to create a 'Conditional Fee' custom post type.
3939
register_inline_table_post_type(
40-
'conditional_fee', // The key for the custom post type.
41-
__( 'Conditional Fee', 'text-domain' ), // The singular name of the custom post type for labels.
42-
__( 'Conditional Fees', 'text-domain' ), // The plural name of the custom post type for labels.
43-
'conditional_fee', // The slug for the custom post type.
44-
[ 'excerpt', 'custom-fields', 'editor' ], // (Optional) Additional features the post type supports.
45-
false // (Optional) Whether to expose this post type in the WordPress REST API. Enables use of the Gutenberg editor and REST API queries.
40+
'conditional_fee', // The key for the custom post type.
41+
__( 'Conditional Fee', 'edd-conditional-fees' ), // The singular name of the custom post type for labels.
42+
__( 'Conditional Fees', 'edd-conditional-fees' ), // The plural name of the custom post type for labels.
43+
'conditional_fee', // The slug for the custom post type.
44+
[ 'excerpt', 'custom-fields', 'editor' ], // (Optional) Additional features the post type supports.
45+
false // (Optional) Whether to expose this post type in the WordPress REST API. Enables use of the Gutenberg editor and REST API queries.
4646
);
4747

4848
/**
@@ -65,7 +65,7 @@ register_inline_table_post_type(
6565
$columns = [
6666
// Example of a custom column with a callback and formatter.
6767
'amount' => [
68-
'label' => __( 'Amount', 'edd-advanced-fees' ),
68+
'label' => __( 'Amount', 'edd-conditional-fees' ),
6969
'callback' => function ( $post ) {
7070
return get_post_meta( $post->ID, 'amount', true );
7171
},
@@ -75,7 +75,7 @@ $columns = [
7575
],
7676
// Example of a simple column that relies on automatic data sourcing.
7777
'expiration_date' => [
78-
'label' => __( 'Expiration Date', 'wp-conditional-discounts' ),
78+
'label' => __( 'Expiration Date', 'edd-conditional-fees' ),
7979
// No callback needed; the system will automatically search for 'expiration_date' in post object or meta.
8080
]
8181
];

0 commit comments

Comments
 (0)