Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Lee Willis

    (@leewillis77)

    Hi,

    I’m not sure what you mean – can you elaborate on exactly what’s not doing what you expect?

    Thread Starter Dexmaster

    (@dexmaster)

    Oh sorry it’s already fixed. Just found some custom taxonomies code needed ))

    If I remember correctly it looks like this:

    function qtranslate_edit_taxonomies(){
        $args=array(
            'public' => true ,
            '_builtin' => false
        );
        $output = 'object'; // or objects
        $operator = 'and'; // 'and' or 'or'
    
        $taxonomies = get_taxonomies($args,$output,$operator);
    
        if ($taxonomies) {
            foreach ($taxonomies as $taxonomy ) {
                add_action( $taxonomy->name.'_add_form', 'qtrans_modifyTermFormFor');
                add_action( $taxonomy->name.'_edit_form', 'qtrans_modifyTermFormFor');
            }
        }
    }
    add_action('admin_init', 'qtranslate_edit_taxonomies');

    It ads qTranslate support to the editor and helps later with options creation and editing ) (I later found out everything else but this helped a lot)

    Also thanks for the reply!

    Thread Starter Dexmaster

    (@dexmaster)

    Thanks )

    Hi Dexmaster.

    Could you please explain how you did to allow qTranslate fields on the options ?
    This would be great.

    Thanks a lot.

    Found it :

    add_action(‘wpec_product_option_add_form’, ‘qtrans_modifyTermFormFor’);
    add_action(‘wpec_product_option_edit_form’, ‘qtrans_modifyTermFormFor’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with qTranslate’ is closed to new replies.