/** * Outputs the change log edit popup. * * @since 1.0 */ public function changelog_popup() { if (isset($_GET['post'])) { $ID = $_GET['post']; } else { $ID = false; } ?> <div id="itelic-edit-changelog-popup" style="display: none"> <div class="wrap changelog-wrap"> <?php echo $ID ? Product::get($ID)->get_changelog() : ''; ?> </div> </div> <?php }
/** * Retrieve a product. * * @api * * @since 1.0 * * @param int $ID * * @return \ITELIC\Product|null */ function itelic_get_product($ID) { return \ITELIC\Product::get($ID); }