This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Options pour WooCommerce | |
Plugin URI: https://wwww.gregoirenoyelle.com | |
Description: Changer des réglage de WooCommerce depuis une extension. | |
Version: 2.0 | |
Author: Grégoire Noyelle | |
Author URI: http://wwww.gregoirenoyelle.com | |
License: GPL2 | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Template Name: Page avec Flexible | |
add_action( 'genesis_entry_content', 'gn_flexible_content', 50); | |
function gn_flexible_content() { | |
// Contrôle si le flexible a des champs | |
if( have_rows('flexible_content_field_name') ): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Supprimer les post info */ | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
/** Suprimer les post meta */ | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* initialiser la taxonomie */ | |
add_action( 'init', 'gncom_register_taxonomy', 0 ); | |
/* fonction pour parametrer l'enregistrement */ | |
function gncom_register_taxonomy() { | |
/************************** | |
Type Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // BALISE PHP À ENLEVER | |
/** | |
* Ajouter page d'options ACF 5 | |
* | |
* @package ACF | |
*/ | |
if( function_exists('acf_add_options_page') ) { | |
// Premier menu d'options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Mettre dans fichier functions.php | |
// bien retirer la balise PHP du début | |
add_action( 'template_redirect', 'gn_filter_content_no_loged'); | |
function gn_filter_content_no_loged( ) { | |
if( is_user_logged_in() || is_home() || is_page( array('3096','3074')) ) | |
return; | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
remove_action('genesis_loop','genesis_do_loop'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Home page with Widget for Sample Theme | |
* | |
* @author Grégoire Noyelle | |
* @package Sample Theme | |
* @subpackage Customizations | |
*/ | |
add_action( 'genesis_meta', 'gn_sample_home_genesis_meta' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_selector": "source, text", | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |