Par ordre alphabétique des artistes
- Amoureux de ma femme
- Et j'entends siffler le train
- Céline
| /** | |
| * Function that returns an array containing the IDs of the featured products. | |
| * | |
| * @since 2.0 | |
| * @access public | |
| * @return array | |
| */ | |
| function woo_get_featured_product_ids() { | |
| // Load from cache | |
| $featured_product_ids = get_transient( 'wc_featured_products' ); |
| % Author: Pierre Dargham | |
| % Author-URI : https://github.com/pierre-dargham | |
| declare | |
| fun {Transport Fleet Number DailyDelayCost} | |
| % Types of ships | |
| Types = {Record.arity Fleet} | |
| proc {Script Solution} |
| % Author: Pierre Dargham | |
| % Author-URI : https://github.com/pierre-dargham | |
| declare | |
| fun {Board Width} | |
| proc {Script Solution} | |
| % Board and Cells |
| <?php | |
| /* | |
| Plugin Name: ACF Before Title | |
| Description: Adds a choice "High (before title) to ACF field groups position drop-down" | |
| Author: Pierre Dargham | |
| Author URI: https://github.com/pierre-dargham/ | |
| Version: 1.0 | |
| */ |
| <?php | |
| /* | |
| Plugin Name: WPG Environment Informations | |
| Description: WPG Environment Informations | |
| Version: 0.1.0 | |
| */ | |
| namespace Globalis\EnvironmentInfo; | |
| add_action('admin_bar_menu', __NAMESPACE__.'\\add_environment_info', 10); |
| <?php | |
| namespace Globalis\ACF; | |
| add_filter('acf/get_field_group', __NAMESPACE__ . '\\acf_translate_field_group'); | |
| add_filter('acf/load_field', __NAMESPACE__ . '\\acf_translate_field'); | |
| function acf_translate_field_group($field_group) { | |
| if(is_acf_admin()) { | |
| return $field_group; |
| <?php | |
| namespace Globalis\WP\DisableDoPings; | |
| if (isset($_GET['doing_wp_cron'])) { | |
| remove_action('do_pings', 'do_all_pings'); | |
| wp_clear_scheduled_hook('do_pings'); | |
| } |
| <?php | |
| namespace Globalis\WP\Cubi; | |
| function get_permalink_by_template($template, $default = false) | |
| { | |
| $pages = new \WP_Query([ | |
| 'posts_per_page' => 1, | |
| 'post_type' => 'page', | |
| 'post_status' => 'publish', |
| <?php | |
| namespace Globalis\WP\Retry; | |
| // @todo: | |
| // 1. POO style | |
| // 2. if last try, and fail -> do_action | |
| // 3. if last try : try / catch exception ? if $on_exception : throws exception ? | |
| add_action('event_retry', __NAMESPACE . '\\_try', 10, 7); |