• 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

    https://www.ads-software.com/plugins/qtranslate-slug/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tnbcwb

    (@tnbcwb)

    help me plz :/

    Plugin Author Pedro Carvalho

    (@pedroghandi)

    Hi tnbcwb, sorry for the late reply. You could remove our filters on the condition of is_single( “custom-post-type”). I will need to test this, not sure it would work properly.

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.