How to add custom additional filed to below Store Section
Hello,
Could you please help me to figure out this problem. I have added visual editor as additional information for store in stores-single.php file.
Here I made a changes.
In , function clpr_edit_stores
I have added
$clpr_store_additional = clpr_get_store_meta( $tag->term_id, 'clpr_store_additional', true );
and
<tr class="form-field">
<th scope="row" valign="top"><label for="clpr_store_additional"><?php _e( 'Additional Info', APP_TD ); ?></label></th>
<td>
<?php wp_editor( htmlspecialchars_decode( $term->description ), 'html-description', $this->editor_settings ); ?>
<span class="description"><?php _e( 'Enter Additional Information of store.', APP_TD ); ?></span></td>
<script type="text/javascript">
// Remove the non-html field
jQuery( 'textarea#description' ).closest( '.form-field' ).remove();
</script>
</tr>
When I enter this code it showing error Fatal error: Using $this when not in object context in
\...\wp-content\themes\Clipper\clipper\includes\admin\stor es-single.php on line 38
and when I change change other object instead of $this then I get a custom field which I have created additional.
Now the problem Is that.. When I am going to add the data into that filed, the data couldn't store in the database.
so could you please help me to give some tips to solve this problem
Thank you.