/** * Add a collection of checkboxes to the donation form. * * This snippet only works in Charitable 1.5 or above. * */ function wpchar_charitable_register_new_checkboxes_field() { if ( ! class_exists(“Charitable_Donation_Field” ) ) { return; }; /** * Define a…Continue reading
add_filter( ‘aioseo_sitemap_exclude_posts’, ‘aioseo_sitemap_filter_excluded_posts’, 10, 2 ); function aioseo_sitemap_filter_excluded_posts( $ids, $type ) { if ( ‘news’ === $type ) { $category_id = 136; $posts_in_category = get_posts(array( ‘category’ => $category_id, ‘numberposts’ => -1, ‘fields’ => ‘ids’ )); $ids = array_merge($ids, $posts_in_category); }…Continue reading
add_action(‘admin_head’, ‘sep_color’); function sep_color() { echo ‘ ‘; }Continue reading
function team_current_group_id() { $current_group = groups_get_current_group(); $current_group_id = isset( $current_group->id ) ? (int) $current_group->id : 0; /** * Filters the ID of the current group. * * @since BuddyPress 1.5.0 * * @param int $current_group_id ID of the current…Continue reading
function team_current_group_id() { $current_group = groups_get_current_group(); $current_group_id = isset( $current_group->id ) ? (int) $current_group->id : 0; /** * Filters the ID of the current group. * * @since BuddyPress 1.5.0 * * @param int $current_group_id ID of the current…Continue reading
function team_activity_feed() { // Bail if not viewing a single group or activity is not active. if ( ! bp_is_active( ‘groups’ ) || ! bp_is_active( ‘activity’ ) || ! bp_is_group() ) { return; } ?> Continue reading
function team_activity_feed() { // Bail if not viewing a single group or activity is not active. if ( ! bp_is_active( ‘groups’ ) || ! bp_is_active( ‘activity’ ) || ! bp_is_group() ) { return; } ?> Continue reading
function team_activity_feed() { // Bail if not viewing a single group or activity is not active. if ( ! bp_is_active( ‘groups’ ) || ! bp_is_active( ‘activity’ ) || ! bp_is_group() ) { return; } ?> Continue reading