文件操作 - AddPlatformFeeAmountToSystemInfo.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/License/Actions/AddPlatformFeeAmountToSystemInfo.php
编辑文件内容
<?php namespace Give\License\Actions; use Give\License\Repositories\LicenseRepository; /** * @since 4.3.0 */ class AddPlatformFeeAmountToSystemInfo { /** * Callback for `give_add_system_info_configuration` that adds the platform fee amount to the system info table. * @since 4.3.0 */ public function __invoke($settings) { /** * @var LicenseRepository $licenseRepository */ $licenseRepository = give(LicenseRepository::class); $label = __('Platform Fee Amount', 'give'); ?> <tr> <td data-export-label="<?php echo $label; ?>"> <?php echo $label; ?>: </td> <td class="help"> <?php echo Give()->tooltips->render_help(__('The GiveWP Platform Fee Percentage.', 'give')); ?> </td> <td> <?php echo $licenseRepository->getPlatformFeePercentage() . '%'; ?> </td> </tr> <?php } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件