Hi,
I’m not sure what you mean – can you elaborate on exactly what’s not doing what you expect?
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!
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’);