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 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. |
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
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() { |
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: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> |
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 | |
// 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é. |
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 | |
/** | |
* BuddyPress - Members Loop | |
* | |
* @since 3.0.0 | |
* @version 3.0.0 | |
*/ | |
bp_nouveau_before_loop(); ?> |
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 | |
/** | |
* 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; | |
/** |
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 | |
/** | |
* 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/ |
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 | |
// 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 |
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 | |
/** | |
* Using WP Statuses for custom Post Types. | |
* | |
* @link http://github.com/imath/wp-statuses | |
*/ | |
// Exit if accessed directly. | |
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 | |
// Exit if accessed directly | |
defined( 'ABSPATH' ) || exit; | |
/** | |
* Référencer un Idea Meta ! | |
*/ | |
function uana_custom_register_metas() { | |
// A very simple way to add a custom field (for text field only) | |
wp_idea_stream_ideas_register_meta( 'anonymous', array( |