Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat.net.pl
/
wp-content
/
plugins
/
wpforms-lite
/
src
/
Integrations
/
Stripe
/
Admin
/
Builder
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
Traits
[目录]
drwxr-xr-x
2026-05-21 02:27
Enqueues.php
3.66 KB
-rw-r--r--
2026-02-24 15:21
Notifications.php
3.21 KB
-rw-r--r--
2026-02-24 15:21
Settings.php
7.35 KB
-rw-r--r--
2026-02-24 15:21
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
Notifications.php
<?php namespace WPForms\Integrations\Stripe\Admin\Builder; use WPForms\Integrations\Stripe\Helpers; /** * Stripe Form Builder notifications-related functionality. * * @since 1.9.5 */ class Notifications { /** * Initialize. * * @since 1.9.5 */ public function init() { $this->hooks(); } /** * Register hooks. * * @since 1.9.5 */ private function hooks() { $hook_name = wpforms()->is_pro() ? 'wpforms_form_settings_notifications_single_after' : 'wpforms_lite_form_settings_notifications_block_content_after'; add_action( $hook_name, [ $this, 'notification_settings' ], 5, 2 ); } /** * Add checkbox to form notification settings. * * @since 1.9.5 * * @param object|mixed $settings Current confirmation settings. * @param int $id Subsection ID. */ public function notification_settings( $settings, int $id ) { if ( empty( $settings->form_data ) ) { return; } wpforms_panel_field( 'toggle', 'notifications', 'stripe', $settings->form_data, esc_html__( 'Enable for Stripe completed payments', 'wpforms-lite' ), $this->get_notification_settings_data( $settings->form_data, $id ) ); } /** * Get notification settings data based on the license type. * * @since 1.9.5 * * @param array $form_data Form settings data. * @param int $id Subsection ID. * * @return array */ private function get_notification_settings_data( array $form_data, int $id ): array { return [ 'parent' => 'settings', 'class' => ! Helpers::is_payments_enabled( $form_data ) ? 'wpforms-hidden' : '', 'subsection' => $id, 'value' => 0, 'input_class' => 'education-modal', 'pro_badge' => ! Helpers::is_allowed_license_type(), 'data' => $this->get_notification_section_data(), 'attrs' => [ 'disabled' => 'disabled' ], ]; } /** * Get notification section data. * * @since 1.9.5 * * @return array */ private function get_notification_section_data(): array { $addon = wpforms()->obj( 'addons' )->get_addon( 'stripe' ); if ( empty( $addon ) || empty( $addon['action'] ) || empty( $addon['status'] ) || ( $addon['status'] === 'active' && $addon['action'] !== 'upgrade' ) ) { return []; } if ( $addon['plugin_allow'] && $addon['action'] === 'install' ) { return [ 'action' => 'install', 'message' => esc_html__( 'The Stripe Pro addon is required to enable notification for completed payments. Would you like to install and activate it?', 'wpforms-lite' ), 'url' => $addon['url'], 'nonce' => wp_create_nonce( 'wpforms-admin' ), 'license' => 'pro', ]; } if ( $addon['plugin_allow'] && $addon['action'] === 'activate' ) { return [ 'action' => 'activate', 'message' => esc_html__( 'The Stripe Pro addon is required to enable notification for completed payments. Would you like to activate it?', 'wpforms-lite' ), 'path' => $addon['path'], 'nonce' => wp_create_nonce( 'wpforms-admin' ), ]; } return [ 'action' => 'upgrade', 'name' => esc_html__( 'Notification for Stripe Completed Payments', 'wpforms-lite' ), 'utm-content' => 'Builder Stripe Completed Payments', 'license' => 'pro', ]; } }
关闭
保存