AP_License::menu()
Description #
Show license menu if license field is registered.
Source #
File: admin/license.php
* Show license menu if license field is registered. */ public function menu() { $fields = ap_product_license_fields(); if ( ! empty( $fields ) ) { $count = ' <span class="update-plugins count"><span class="plugin-count">' . number_format_i18n( count( $fields ) ) . '</span></span>'; add_submenu_page( 'anspress', __( 'Licenses', 'anspress-question-answer' ), __( 'Licenses', 'anspress-question-answer' ) . $count, 'manage_options', 'anspress_licenses', array( $this, 'display_plugin_licenses' ) );
Expand full source code Collapse full source code View on GitHub: admin/license.php:33
Add your comment