/** * Render plugin meta field mockup image * * @since 1.0.0 */ public function render_meta_fields() { do_action('smartmockups_before_render_meta_fields', get_the_ID()); echo '<table class="form-table">'; echo ' <tbody>'; $post_types = Smart_Mockups_Setup::post_types(); foreach ($post_types[SMART_MOCKUPS_POSTTYPE]['post_meta'] as $id => $attr) { Smart_Mockups_Setup::render_form_field($id, $attr['type'], $attr); } echo ' </tbody>'; echo '</table>'; do_action('smartmockups_after_render_meta_fields', get_the_ID()); }