This file contains hidden or 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
| { | |
| "$schema": "https://raw.githubusercontent.com/retraceur/ressources/refs/heads/main/schemas/retraceur-manifest.json", | |
| "name": "imath/bout-de-code", | |
| "type": "block", | |
| "requires": { | |
| "retraceur": "3.2.0", | |
| "php": "7.4", | |
| "dependencies": [] | |
| }, | |
| "author": { |
This file contains hidden or 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 | |
| /** | |
| * A Retraceur Block to embed Gists in posts. | |
| * | |
| * @package Bout de code | |
| * @author imath | |
| * @license MIT | |
| * @link https://imathi.eu | |
| * | |
| * @retraceur-block |
This file contains hidden or 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 | |
| /** | |
| * Filter hook to enable the Retraceur Cœur 1 click upgrade during 2.0.0 betatests. | |
| * | |
| * You can use a `/wp-content/mu-plugins/index.php` file to always run this code into your Retraceur instance. | |
| */ | |
| add_filter( 'retraceur_betatest_direct_updates', '__return_true' ); |
This file contains hidden or 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 | |
| /** | |
| * Custom functions. | |
| * | |
| * You can use a `/mu-plugins/functions.php` file to always run this code into your Retraceur instance. | |
| */ | |
| // Bring back WP regular registration workflow. | |
| add_filter( 'retraceur_create_account_on_signup', '__return_true' ); |
This file contains hidden or 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 | |
| function disable_bp_signups() { | |
| add_filter( 'bp_get_signup_allowed', '__return_false' ); | |
| remove_filter( 'register_url', 'bp_get_signup_page' ); | |
| remove_action( 'bp_init', 'bp_core_wpsignup_redirect' ); | |
| remove_filter( 'wp_signup_location', 'bp_blogs_creation_location' ); | |
| remove_filter( 'wpmu_signup_user_notification', 'bp_core_activation_signup_user_notification', 1 ); | |
| } | |
| add_action( 'bp_include', 'disable_bp_signups' ); |
This file contains hidden or 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 | |
| /** | |
| * Créer deux nouveaux types de membre par exemple `gentlemen` et `ladies`. | |
| * Se reporter à cette documentation: https://bpdevel.wordpress.com/2020/09/21/bp-types-admin-ui/ | |
| * | |
| * Affecter ces types de membre aux utilisateurs | |
| * Utiliser le code ci-dessous pour personnaliser le répertoire des membres en fonction du type | |
| * de membre de l'utilisateur connecté. | |
| * | |
| * Se reporter à cette documentation pour la mise en place du fichier `bp-custom.php`: |
This file contains hidden or 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 | |
| /** | |
| * Custom function file. | |
| * | |
| * Put a file called `bp-custom.php` into your /wp-content/plugins folder. | |
| */ | |
| // Exit if accessed directly. | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; |
This file contains hidden or 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 | |
| /** | |
| * BP Attachments overrides. | |
| */ | |
| // Exit if accessed directly. | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } |
This file contains hidden or 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 | |
| /** | |
| * Workaround to make sure query pagination labels are translated. | |
| * | |
| * This function hooks `render_block_context` to transport the `core/query-pagination` block | |
| * context inside the 'ensemble/pagination' pattern so that the `core/query-pagination-previous` | |
| * & the `core/query-pagination-next` blocks can use it. | |
| * | |
| * @since 1.0.0 | |
| * |
This file contains hidden or 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
| <!-- wp:group {"tagName":"nav","className":"single-footer-pagination","layout":{"type":"flex","justifyContent":"space-between"}} --> | |
| <nav class="wp-block-group single-footer-pagination"> | |
| <!-- wp:post-navigation-link {"type":"previous","showTitle":true} /--> | |
| <!-- wp:post-navigation-link {"showTitle":true} /--> | |
| </nav> | |
| <!-- /wp:group --> |
NewerOlder