wpmdb_new_path_current_site

wpmdb_new_path_current_site

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wp-migrate-db.2.6.9

apply_filters('wpmdb_new_path_current_site') is found 1 times:

  • /class/Common/Sql/Table.php line 1516
                                } elseif (!empty($form_data['replace_new'][1])) {
                                    $new_path_current_site = $this->util->get_path_from_url($form_data['replace_new'][1]);
                                }
    
                                $new_path_current_site = apply_filters('wpmdb_new_path_current_site', $new_path_current_site);
    
                                if (!empty($new_path_current_site) && $old_path_current_site != $new_path_current_site) {
                                    $pos   = strpos($value, $old_path_current_site);
                                    $value = substr_replace($value, $new_path_current_site, $pos, strlen($old_path_current_site));
                                }
                            }