[Plugin: AJAX Post Meta] Adding ajax post meta functionality to Woocommerce
-
Dear Brainstorm media,
we are trying to use your AJAX Post Meta plugin with woocommerce but we cannot get it to work.
If i am correct i should add the post type product to the post_types in the functions.php and the columns which need the direct edit function.
But it does not work is there something i am doing wrong?
I hope you can help me out.this is the code i have in functions.php
// Ajax quick edit function my_ajax_meta_post_types( $post_types ) { // Add list of post types to any previously enabled. // To complete override, just return an array return wp_parse_args( array( 'product', ), $post_types ); } add_filter('ajax_meta_post_types', 'my_ajax_meta_post_types'); function my_ajax_meta_keys($keys) { // Array of meta keys to enable editing for return wp_parse_args( array( // General syntax // 'meta_key' => __('Column Title'), 'code' => __('Code'), 'Leverancier' => __('leverancier'), ), $keys ); } add_filter('ajax_meta_keys', 'my_ajax_meta_keys');
Yours Truly,
Patrick
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: AJAX Post Meta] Adding ajax post meta functionality to Woocommerce’ is closed to new replies.