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. |
View post-taxonomy-panel.js
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
const { createElement, Component } = wp.element; | |
const { compose } = wp.compose; | |
const { RadioControl } = wp.components; | |
const { withSelect, withDispatch } = wp.data; | |
const { addFilter } = wp.hooks; | |
const { apiFetch } = wp; | |
const { __ } = wp.i18n; | |
class RiskDomain extends Component { | |
constructor() { |
View post_content.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:wpqba/block {"wpqbaAttributeOne":"Un","wpqbaAttributeTwo":1} --> | |
<div class="wp-block-wpqba-block"> | |
<h2>Test inputs</h2> | |
<div class="row"> | |
<div class="label"> | |
<span>Test input One</span> | |
</div> | |
<div class="value"> | |
<span>Un</span> | |
</div> |
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 | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
/** | |
* Ajouter ce code dans un fichier du répertoire /wp-content/mu-plugins | |
* de votre WordPress pour désactiver l'insertion du contrôle pour afficher | |
* l'URL de trackback de l'article affiché. |
View members-loop.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 | |
/** | |
* BuddyPress - Members Loop | |
* | |
* @since 3.0.0 | |
* @version 3.0.0 | |
*/ | |
bp_nouveau_before_loop(); ?> |
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 | |
/** | |
* For more information about how to use the bp-custom.php file | |
* @see https://codex.buddypress.org/themes/bp-custom-php/ | |
*/ | |
// Exit if accessed directly | |
defined( 'ABSPATH' ) || exit; | |
/** |
View bp-example-block.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 | |
/** | |
* Plugin Name: BP Example Block | |
* Plugin URI: https://buddypress.org/ | |
* Description: Example of BuddyPress block. | |
* Author: The BuddyPress Community | |
* Author URI: https://buddypress.org/ | |
* Version: 1.0.0 | |
* Text Domain: buddypress | |
* Domain Path: /languages/ |
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 | |
// Registers a REST field for the Activity Endpoints. | |
function example_register_activity_rest_field() { | |
bp_rest_register_field( | |
'activity', // Id of the BuddyPress component the REST field is about | |
'example_field', // Used into the REST response/request | |
array( | |
'get_callback' => 'example_get_rest_field_callback', // The function to use to get the value of the REST Field | |
'update_callback' => 'example_update_rest_field_callback', // The function to use to update the value of the REST Field |
NewerOlder