Instagram inspiration
#metro en temps de covid19 via Instagram https://instagr.am/p/CCA50agq5r-/
read moreFFP – Fédération Française du Paysage
Nouveau site, nouvelle identité pour la Fédération Française du Paysage.
read moreUsing parcel-plugin-custom-dist-structure with parcel
When building with Parcel, all the files are bundled and share the same root folder: dist |- index.html |- index.5243.css |- index.5243.css.map |- index.5243.js |- index.5243.js.map Fortunately, the plugin parcel-plugin-custom-dist-structure...
read moreWoocommerce membership plugin : include custom field in admin search
I had a hard time finding how to add custom field to admin search under woocommerce > members list. The woocommerce membership plugin is in fact using the ‘posts_clauses’ filter...
read moreACF how to update field link
To update field link, we have to use an array : <?php $site = array( 'title' => $my_title, 'url' => $my_url, 'target' => "_blank", ); update_field('site', $site, 'user_' . $user_id);...
read morewoocommerce, overwrite auto scroll (scroll to notice function)
It is WooCommerce default behaviour to scroll to the top of the checkout or the cart form after an errored checkout submit. I had a case where the auto scroll...
read morewordpress filter set-screen-option not working
I recently tried to use screen options for a wordpress backend plugin. I wanted to use a per page variable to be able to easily manage a number of users...
read morewoocommerce membership and subscription plugin snippet
Get membership object from user id function get_membership($user_id) { return wc_memberships()->get_user_memberships_instance()->get_user_memberships( $user_id )[0] ??null; } Get member id from user id function get_member_id($user_id) { if (get_membership($user_id)) return get_membership($user_id)->get_id(); else return...
read more