Update Patreon list table column values

This commit is contained in:
Tetrakern 2024-05-10 03:14:28 +02:00
parent 72ccf05a2d
commit bf495c0998
2 changed files with 6 additions and 11 deletions

View File

@ -4310,11 +4310,6 @@ function fictioneer_add_patreon_posts_columns( $post_columns ) {
*/
function fictioneer_manage_posts_custom_column( $column_name, $post_id ) {
switch( $column_name ) {
case 'fictioneer_patreon_lock_tiers':
$tiers = get_post_meta( $post_id, 'fictioneer_patreon_lock_tiers', true ) ?: [];
$tiers = is_array( $tiers ) ? $tiers : [];
echo $tiers ? implode( ', ', $tiers ) : '—';
break;
case 'fictioneer_patreon_lock_amount':
echo get_post_meta( $post_id, 'fictioneer_patreon_lock_amount', true ) ?: '—';

View File

@ -1786,7 +1786,7 @@ function fcntr( $key, $escape = false ) {
'future_prefix' => _x( 'Scheduled:', 'Chapter list status prefix.', 'fictioneer' ),
'trashed_prefix' => _x( 'Trashed:', 'Chapter list status prefix.', 'fictioneer' ),
'private_prefix' => _x( 'Private:', 'Chapter list status prefix.', 'fictioneer' ),
'free_patreon_tier' => _x( 'Follower (free)', 'Free Patreon tier (follower).', 'fictioneer' )
'free_patreon_tier' => _x( 'Follower (Free)', 'Free Patreon tier (follower).', 'fictioneer' )
);
// Filter static translations