PATH:
home
/
lab2454c
/
gemition.com
/
wp-content
/
plugins
/
mailchimp-for-wp
/
includes
/
admin
/
migrations
<?php defined( 'ABSPATH' ) or exit; /** @ignore */ function _mc4wp_400_replace_comma_with_pipe( $matches ) { $old = $matches[1]; $new = str_replace( ',', '|', $old ); return str_replace( $old, $new, $matches[0] ); } // get all forms $posts = get_posts( array( 'post_type' => 'mc4wp-form', 'numberposts' => -1, ) ); foreach ( $posts as $post ) { // find hidden field values in form and pass through replace function $old = $post->post_content; $new = preg_replace_callback( '/type="hidden" .* value="(.*)"/i', '_mc4wp_400_replace_comma_with_pipe', $old ); // update post if we replaced something if ( $new != $old ) { $post->post_content = $new; wp_update_post( $post ); } }
[-] 3.0.0-form-3-messages.php
[edit]
[-] 4.1.3-reschedule-event.php
[edit]
[+]
..
[-] 3.0.0-integration-options.php
[edit]
[-] 4.0.0-hidden-fields-value-delimiter.php
[edit]
[-] 4.1.2-flush-list-cache.php
[edit]
[-] 3.0.0-general-options.php
[edit]
[-] 4.8.2-move-debug-log-to-subdirectory.php
[edit]
[-] 3.0.0-form-1-post-type.php
[edit]
[-] 3.1.6-woocommerce-position-prefix.php
[edit]
[-] 4.0.0-groupings-to-interests.php
[edit]
[-] 3.0.0-styles-builder.php
[edit]
[-] 3.0.3-usage-tracking-schedule.php
[edit]
[-] 3.0.0-widget-base-id.php
[edit]
[-] 3.0.0-form-2-options.php
[edit]
[-] 4.0.7-rename-debug-log-file.php
[edit]
[-] 4.6.0-remove-lists-from-options.php
[edit]