示例#1
0
function icl_st_update_string_actions($context, $name, $old_value, $new_value, $force_complete = false)
{
    global $wpdb;
    require_once 'wpml-st-string-update.class.php';
    $string_update = new WPML_ST_String_Update($wpdb);
    $string_update->update_string($context, $name, $old_value, $new_value, $force_complete);
}
示例#2
0
function icl_st_update_string_actions($context, $name, $old_value, $new_value, $force_complete = false)
{
    if (class_exists('WPML_WPDB_User')) {
        global $wpdb;
        require_once dirname(__FILE__) . '/wpml-st-string-update.class.php';
        $string_update = new WPML_ST_String_Update($wpdb);
        $string_update->update_string($context, $name, $old_value, $new_value, $force_complete);
    }
}