View bp-custom.php
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 | |
/** | |
* 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`: |
View bp-custom.php
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 | |
/** | |
* Custom function file. | |
* | |
* Put a file called `bp-custom.php` into your /wp-content/plugins folder. | |
*/ | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; |
View bp-custom.php
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 | |
/** | |
* BP Attachments overrides. | |
*/ | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} |
View functions.php
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 | |
/** | |
* 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 | |
* |
View single.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
<!-- 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 --> |
View mu-plugins-functions.php
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 | |
/** | |
* Put this file into the `wp-content/mu-plugins` directory. | |
*/ | |
function restore_wp_registration_url() { | |
return site_url( 'wp-login.php?action=register', 'login' ); | |
} | |
function use_a_specific_wordpress_page() { |
View bp-custom.php
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 | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
/** | |
* Force the full size featured image to be used by the BP Media Extractor for `new_blog_post` activity types. | |
* |
View bp-custom.php
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 | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
function maelscuttle_twitter_xprofile( $methods = array() ) { | |
$methods['twitter'] = __( 'Twitter', 'maelscuttle-textdomain' ); | |
return $methods; |
View bp-custom-1.php
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 | |
/** | |
* Showing the `friendship_status_slug` Members Endpoint's schema property. | |
*/ | |
function test_bp_rest_api() { | |
wp_enqueue_script( 'bp-api-request' ); | |
wp_add_inline_script( | |
'bp-api-request', | |
'bp.apiRequest( { |
View bp-custom.php
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 | |
/** | |
* BP Custom function file. | |
* | |
* Add this file into /wp-content/plugins/ to customize BuddyPress. | |
* | |
* @see https://codex.buddypress.org/themes/bp-custom-php/ | |
*/ | |
// Exit if accessed directly. |
NewerOlder