| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin adapter for YayExtra Lite - WooCommerce Extra Product Option. |
| 4 |
* Generated by yaycommerce-init. Edit values as needed. |
| 5 |
*/ |
| 6 |
|
| 7 |
defined( 'ABSPATH' ) || exit; |
| 8 |
|
| 9 |
class YayextraPluginAdapter implements \YayExtraScoped\YayCommerce\AdminShell\Contracts\PluginMenuAdapter { |
| 10 |
public function get_menu_title(): string { return 'YayExtra'; } |
| 11 |
public function get_page_title(): string { return 'YayExtra Lite - WooCommerce Extra Product Option'; } |
| 12 |
public function get_menu_slug(): string { return 'yayextra'; } |
| 13 |
public function get_settings_page_callback(): ?callable { return function(){ |
| 14 |
?> |
| 15 |
<script> |
| 16 |
document.querySelector("#wpbody-content").innerHTML = ""; |
| 17 |
</script> |
| 18 |
<div id="yayextra-section"></div> |
| 19 |
<?php |
| 20 |
}; } // Set your render callback here |
| 21 |
public function get_settings_page_position(): ?int { return 201; } |
| 22 |
public function get_capability(): string { return 'manage_options'; } |
| 23 |
public function get_plugin_basename(): string { return YAYE_BASENAME; } |
| 24 |
public function get_settings_label(): string { return 'Settings'; } |
| 25 |
public function get_docs_url(): string { return 'https://docs.yaycommerce.com/yayextra/'; } |
| 26 |
public function get_pro_url(): string { return 'https://yaycommerce.com/yayextra-woocommerce-extra-product-options/'; } |
| 27 |
|
| 28 |
} |
| 29 |
|