How to disable qTranslate slug for a custom post?
-
Hi,
I need to disable qTranslate slug for custom posts, how can I do that?
OR
I need to make a SLUG URL with MD5…
Exemple:function slug_change($data) {
if ($data[‘post_type’] == ‘custom_post’) {
$time = time();
$data[‘post_name’] = md5($time);
return $data;
} else {
return $data;
}
}
add_filter(‘wp_insert_post_data’,’slug_change’,10,2);This code change the native slug, buy I need to change qTranslate Slug…
Srry my english :/
Regards,
Luiz
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to disable qTranslate slug for a custom post?’ is closed to new replies.