We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f360409 commit 7ad8d79Copy full SHA for 7ad8d79
1 file changed
classes/class-cpt-wplf-form.php
@@ -185,7 +185,9 @@ function custom_columns_cpt( $columns ) {
185
*/
186
function custom_columns_display_cpt( $column, $post_id ) {
187
if( 'shortcode' === $column ) {
188
- echo '<code>[libre-form id="' . $post_id . '"]</code>';
+?>
189
+<input type="text" class="code" value='[libre-form id="<?php echo $post_id; ?>"]' readonly>
190
+<?php
191
}
192
if( 'submissions' === $column ) {
193
// count number of submissions
@@ -260,7 +262,7 @@ function add_meta_boxes_cpt() {
260
262
261
263
function metabox_shortcode( $post ) {
264
?>
-<p><code>[libre-form id="<?php echo $post->ID; ?>"]</code></p>
265
+<p><input type="text" class="code" value='[libre-form id="<?php echo $post->ID; ?>"]' readonly></p>
266
<?php
267
268
0 commit comments