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 | |
/** | |
* What is the wp-idea-stream-custom.php file ? | |
* @see https://github.com/imath/wp-idea-stream/wiki/wp-idea-stream-custom.php | |
*/ | |
function uana_map_to_editor( $caps, $cap, $user_id, $args ) { | |
/** | |
* Role > min cap. | |
* editor > edit_pages |
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 infos about how to use the wp-idea-stream-custom.php file | |
* @see https://github.com/imath/wp-idea-stream/wiki/wp-idea-stream-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 | |
/** | |
* @see https://codex.buddypress.org/themes/bp-custom-php/ | |
* to learn more about the bp-custom.php file | |
*/ | |
// Exit if accessed directly | |
defined( 'ABSPATH' ) || exit; | |
/** | |
* Edit each fetched Buddydrive to include the file owner display name. |
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 | |
/** | |
* 1st step: Just register a new sidebar. | |
*/ | |
function twentyseventeen_child_register_sidebar() { | |
register_sidebar( array( | |
'name' => __( 'Ideas', '2017-child' ), | |
'description' => __( 'Above the list of ideas', '2017-child' ), | |
'id' => 'ideas', |
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 | |
/** | |
* WP Idea Stream Custom | |
* | |
* If i'm located in WP_PLUGIN_DIR, WP Idea Stream will load me. | |
*/ | |
// 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; | |
function georgio_idea_footer_actions( $footer = '' ) { | |
if ( ! bp_is_group() ) { | |
return $footer; | |
} |
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 | |
/** | |
* Temporary fix for: | |
* https://wordpress.org/support/topic/commenting-bug-under-buddypress-groups-multisite/ | |
* | |
* Will be part of WP Idea Stream 2.3.4 | |
*/ | |
// 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; | |
function fix_all_custom_language_packs_load_textdomain_mofile( $mofile, $domain ) { | |
if ( WP_LANG_DIR . '/plugins' === dirname( $mofile ) ) { | |
$mo = basename( $mofile ); | |
$alt = trailingslashit( WP_LANG_DIR ) . $domain . '/'; |
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; | |
function fix_bbpress_custom_language_packs( $bbpress = null ) { | |
// No need to perform this action, it's too late! | |
remove_action( 'bbp_load_textdomain', array( $bbpress, 'load_textdomain' ), 5 ); | |
/** | |
* To be sure the custom language pack is loaded, let's be the first to load the textdomain |
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 neutralize_regular_post_comments_tracking( $default, $post_type ) { | |
if ( 'post' === $post_type ) { | |
return true; | |
} | |
return $default; | |
} | |
add_filter( 'bp_activity_pre_transition_post_type_comment_status', 'neutralize_regular_post_comments_tracking', 10, 2 ); |