Skip to content

Commit

Permalink
Use URL param for post
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Jul 17, 2024
1 parent 1b368e4 commit 102d240
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PostTypeRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ public function updated_message( $messages ) {
$link = add_query_arg( [
'post_type' => 'meta-box',
'post_title' => sprintf( __( '%s Fields', 'mb-custom-post-type' ), $post->post_title ),
'mb-post-type' => $settings['slug'],
'settings[object_type]' => 'post',
'settings[post_types][]' => $settings['slug'],
], admin_url( 'post-new.php' ) );
$add_fields_link = '<a href=' . esc_url( $link ) . '>' . __( 'Add custom fields to this post type', 'mb-custom-post-type' ) . ' &rarr;</a>';
}
Expand Down

0 comments on commit 102d240

Please sign in to comment.