??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/sendmaxagency.com/wp-content/plugins/sureforms/inc/updater-callbacks.php
⬅ Kembali
<?php
/**
* SureForms Updater Callbacks.
* Provides static methods for the updater class.
*
* @package sureforms.
* @since 1.0.0
*/
namespace SRFM\Inc;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Updater class.
*
* @since 1.0.0
*/
class Updater_Callbacks {
/**
* Update callback method to handle the default dynamic block options in the global settings.
*
* @since 1.0.2
* @return void
*/
public static function manage_default_dynamic_options() {
$previous_options = get_option( 'get_default_dynamic_block_option' );
if ( ! empty( $previous_options ) && is_array( $previous_options ) ) {
update_option( 'srfm_default_dynamic_block_option', $previous_options );
delete_option( 'get_default_dynamic_block_option' );
}
}
/**
* Update callback method to handle the default dynamic block options in the global settings.
*
* @since 1.0.4
* @return void
*/
public static function manage_empty_default_dynamic_options() {
$previous_options = get_option( 'srfm_default_dynamic_block_option' );
if ( ! empty( $previous_options ) && is_array( $previous_options ) ) {
// get default options values.
$default_options = Helper::default_dynamic_block_option();
// merge previous options with default options after filtering empty values.
$previous_options = array_merge( $default_options, array_filter( $previous_options ) );
// update the options.
update_option( 'srfm_default_dynamic_block_option', $previous_options );
}
}
/**
* Update callback method to handle the honeypot option in the global settings.
*
* @since 1.2.1
* @return void
*/
public static function manage_honeypot_option() {
// Retrieve the previous general settings options.
$general_options = get_option( 'srfm_general_settings_options' );
if ( ! empty( $general_options ) && is_array( $general_options ) && isset( $general_options['srfm_honeypot'] ) ) {
// Retrieve the security settings options.
$security_options = get_option( 'srfm_security_settings_options' );
if ( is_array( $security_options ) ) {
// Set the honeypot setting in the security options.
$security_options['srfm_honeypot'] = $general_options['srfm_honeypot'];
// Update the security options.
update_option( 'srfm_security_settings_options', $security_options );
}
// Remove the honeypot setting from the general options and update it.
unset( $general_options['srfm_honeypot'] );
update_option( 'srfm_general_settings_options', $general_options );
}
}
/**
* Update callback method to handle the default dynamic block options in the global settings.
*
* @since 1.2.1
* @return void
*/
public static function manage_empty_global_dynamic_options() {
$previous_options = get_option( 'srfm_default_dynamic_block_option' );
$new_options = Translatable::dynamic_messages();
if ( ! empty( $previous_options ) && is_array( $previous_options ) ) {
// Iterate and update the options.
foreach ( $new_options as $key => $value ) {
if ( ! isset( $previous_options[ $key ] ) ) {
$previous_options[ $key ] = $value;
}
}
} else {
$previous_options = Helper::default_dynamic_block_option();
}
// update the options.
update_option( 'srfm_default_dynamic_block_option', $previous_options );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 abilities
dir
—
2026-06-25 20:19
📁 admin
dir
—
2026-06-25 20:19
📁 ai-form-builder
dir
—
2026-06-25 20:19
📁 blocks
dir
—
2026-06-25 20:19
📁 compatibility
dir
—
2026-06-25 20:19
📁 database
dir
—
2026-06-25 20:19
📁 email
dir
—
2026-06-25 20:19
📁 fields
dir
—
2026-06-25 20:19
📁 global-settings
dir
—
2026-06-25 20:19
📁 lib
dir
—
2026-06-25 20:19
📁 migrator
dir
—
2026-06-25 20:19
📁 page-builders
dir
—
2026-06-25 20:19
📁 payments
dir
—
2026-06-25 20:19
📁 single-form-settings
dir
—
2026-06-25 20:19
📁 traits
dir
—
2026-06-25 20:19
🐘 activator.php
php
1 KB
2026-06-25 20:19
🐘 admin-ajax.php
php
13.4 KB
2026-06-25 20:19
🐘 background-process.php
php
4.8 KB
2026-06-25 20:19
🐘 create-new-form.php
php
4.9 KB
2026-06-25 20:19
🐘 duplicate-form.php
php
8.4 KB
2026-06-25 20:19
🐘 entries.php
php
24.3 KB
2026-06-25 20:19
🐘 events-scheduler.php
php
1.3 KB
2026-06-25 20:19
🐘 export.php
php
11.8 KB
2026-06-25 20:19
🐘 field-validation.php
php
22.9 KB
2026-06-25 20:19
🐘 form-restriction.php
php
11.2 KB
2026-06-25 20:19
🐘 form-styling.php
php
7 KB
2026-06-25 20:19
🐘 form-submit.php
php
55.7 KB
2026-06-25 20:19
🐘 forms-data.php
php
7.1 KB
2026-06-25 20:19
🐘 frontend-assets.php
php
16.3 KB
2026-06-25 20:19
🐘 generate-form-markup.php
php
49.9 KB
2026-06-25 20:19
🐘 gutenberg-hooks.php
php
10.9 KB
2026-06-25 20:19
🐘 helper.php
php
92.4 KB
2026-06-25 20:19
🐘 learn.php
php
13.5 KB
2026-06-25 20:19
🐘 onboarding.php
php
3.9 KB
2026-06-25 20:19
🐘 post-types.php
php
48.4 KB
2026-06-25 20:19
🐘 rest-api.php
php
56.7 KB
2026-06-25 20:19
🐘 smart-tags.php
php
28.1 KB
2026-06-25 20:19
🐘 submit-token.php
php
4.6 KB
2026-06-25 20:19
🐘 translatable.php
php
5.9 KB
2026-06-25 20:19
🐘 updater-callbacks.php
php
3.3 KB
2026-06-25 20:19
🐘 updater.php
php
5.1 KB
2026-06-25 20:19