Skip to content

Commit

Permalink
Fix custom capability fallback
Browse files Browse the repository at this point in the history
Related #7218
  • Loading branch information
JoryHogeveen authored Jan 30, 2024
1 parent afc1c7c commit 391686f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PodsInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ public function setup_content_types( $force = false ) {
$capability_type = pods_v( 'capability_type', $post_type, 'post' );

if ( 'custom' === $capability_type ) {
$capability_type = pods_v( 'capability_type_custom', $post_type, 'post' );
$capability_type = pods_v( 'capability_type_custom', $post_type, pods_v( 'name', $post_type, 'post' ) );
}

$show_in_menu = (boolean) pods_v( 'show_in_menu', $post_type, true );
Expand Down

0 comments on commit 391686f

Please sign in to comment.