' . esc_html( $label ), array( $this, 'settings' ), esc_attr( ABPET_Function::get_cpt() ), 'normal', 'high' ); } public function settings(): void { $post_id = get_the_id(); $copy_post_id = isset( $_GET['copy_post'] ) ? absint( $_GET['copy_post'] ) : ''; if ( ! empty( $copy_post_id ) && isset( $_GET['_abpet_nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_abpet_nonce'] ) ), 'abpet_copy_post_action' ) && current_user_can( 'edit_post', $copy_post_id ) ) { ?>