Petit oiseau

Atelier de création composé du duo de directeurs artistiques Virginie Sala et Thomas Desgrippes

Electro code

S’amuser à faire des éclairs en JS en utilisant le bruit simplex (simplex noise qui sonne quand même bien mieux en anglais) . Voir l’animation   

Zenit

Un peu de nostalgie avec Zenit, marque d’appareils photos soviétiques du siècle dernier. Le boîtier pesait une tonne mais c’était un appareil tout terrain qui ne craignait pas les coups. ZENIT TTL by Lisa on Sketchfab

Using 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 lets you generate the structure you want for you build. Once installed, you just have to configure the plugin settings in package.json. For example: “customDistStructure”: Using parcel-plugin-custom-dist-structure with parcel

Woocommerce 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 to filter the search result. So to add custom fields, here is the code I use :   function advanced_admin_custom_search($pieces, WP_Query $wp_query) { global $wpdb; Woocommerce membership plugin : include custom field in admin search

ACF 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); ?>  

wordpress 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 to request. I first init the screen options : add_action(‘my_plugin_slug’, array( $this, ‘screen_set_option’)); function screen_set_option() {     add_screen_option(‘per_page’, array(     ‘default’=>10,     wordpress filter set-screen-option not working