Title: cvmh's Replies | WordPress.org

---

# cvmh

  [  ](https://wordpress.org/support/users/cvmh/)

 *   [Profile](https://wordpress.org/support/users/cvmh/)
 *   [Topics Started](https://wordpress.org/support/users/cvmh/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cvmh/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cvmh/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cvmh/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cvmh/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cvmh/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Loco Translate] Sync issue](https://wordpress.org/support/topic/sync-issue-4/)
 *  Thread Starter [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sync-issue-4/#post-14194932)
 * Here it is :
 *     ```
       Uncaught TypeError: can't access property "length", d is undefined
           p https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.2:12
           jQuery 7
           p https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.2:13
           post https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.2:16
           O https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/editor.js?ver=2.5.2:1
           sync https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/editor.js?ver=2.5.2:1
           jQuery 2
               dispatch
               handle
       admin.js:12:456
           p https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.2:12
           jQuery 7
           p https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.2:13
           post https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/admin.js?ver=2.5.2:16
           O https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/editor.js?ver=2.5.2:1
           sync https://www.xxxxxxx.com/wp-content/plugins/loco-translate/pub/js/min/editor.js?ver=2.5.2:1
           jQuery 2
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Loco Translate] Sync issue](https://wordpress.org/support/topic/sync-issue-4/)
 *  Thread Starter [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sync-issue-4/#post-14194865)
 * Same issue with the dev version. Same js error
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Loco Translate] Sync issue](https://wordpress.org/support/topic/sync-issue-4/)
 *  Thread Starter [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sync-issue-4/#post-14194287)
 * Yes same issue
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WC Ajax Layered Navigation with Multi-Select Filters] Filters not appear on translated version](https://wordpress.org/support/topic/filters-not-appear-on-translated-version/)
 *  Thread Starter [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/filters-not-appear-on-translated-version/#post-8580484)
 * I installed a transient management plugin, deleted transients and filters reappear.
   
   It seems to be a transient issue…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Can’t see products variations in admin](https://wordpress.org/support/topic/cant-see-products-variations-in-admin/)
 *  Thread Starter [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cant-see-products-variations-in-admin/#post-8529084)
 * I had an error in a filter. Sorry for the post
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP 4.4 Permalink on private child pages (save_post)](https://wordpress.org/support/topic/wp-44-permalink-on-private-child-pages-save_post/)
 *  [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wp-44-permalink-on-private-child-pages-save_post/#post-6840074)
 * Add this to your functions.php:
 *     ```
       /**
        * Change permalink for private subpages
        */
       add_filter( 'the_permalink', 'private_subpages_permalink' );
       function private_subpages_permalink( $permalink ) {
           if ( get_post_status() === 'private' and $parent_id = wp_get_post_parent_id( get_the_ID() ) ) :
               if ( $parent_id ) :
                   $new_permalink = substr( get_the_permalink( $parent_id ), 0, -1 ); // substr removes last slash
                   return str_replace( site_url(), $new_permalink, $permalink );
               endif;
           endif;
           return $permalink;
       }
       ```
   
 * **Note that this snippet uses the “the_permalink” filter, so it means that the
   link to the page is called with the “the_permalink()” function**
 * Otherwise there was a shorter way to add private parents:
 *     ```
       /**
        * Add private pages to parent dropdown.
        */
       add_filter( 'page_attributes_dropdown_pages_args', 'dropdown_pages_args_add_parents' );
       add_filter( 'quick_edit_dropdown_pages_args', 'dropdown_pages_args_add_parents' );
       function dropdown_pages_args_add_parents( $dropdown_args, $post ) {
           $dropdown_args['post_status'] = array( 'publish', 'private' );
           return $dropdown_args;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Issue with wpcf7_before_send_mail](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/)
 *  [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/page/2/#post-5168794)
 * Many thanks tristanslater !
    It works perfectly.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Issue with wpcf7_before_send_mail](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/)
 *  [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/#post-5168789)
 * Thanks for the link prolab.
    For me collect data is not the problem. The proble
   is to updated the email. An idea ?
 *     ```
       add_action( 'wpcf7_before_send_mail', 'wishlist_email' );
           function wishlist_email( &$cf7 )
           {
               $submission = WPCF7_Submission::get_instance();
               $data =& $submission->get_posted_data();
               $tmp = '<table><tr><td>Ref1</td><td>Ref2</td><td>qty</td></tr>';
               if(!empty($data[wishlist])):
                   foreach($data['wishlist'] as $key=>$item):
                       $tmp.= '<tr><td>'.$data['wishlist_fournisseur'][$key].'</td><td>'.$data['wishlist'][$key].'</td><td>'.$data['quantity'][$key].'</td></tr>';
                   endforeach;
               endif;
               $tmp.= '</table>';
               $cf7->mail['body'].= $tmp;
           }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Issue with wpcf7_before_send_mail](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/)
 *  [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/#post-5168778)
 * With this code, the hook is not called, I can’t see it in my browser dev tool(
   I only see the json for the succes message) :
 *     ```
       function wpcf7_modify_this(&$wpcf7_data) {
               $wpcf7_data->mail['body'].= "======================================================";
           }
           add_action("wpcf7_before_send_mail", "wpcf7_modify_this");
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Issue with wpcf7_before_send_mail](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/)
 *  [cvmh](https://wordpress.org/support/users/cvmh/)
 * (@cvmh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/issue-with-wpcf7_before_send_mail/#post-5168776)
 * Same issue, WP 3.9.2 CF7 3.9.3.

Viewing 10 replies - 1 through 10 (of 10 total)