Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Plugin Name: WC Enable Brands
* Description: Enable the Brands feature available as of WooCommerce 9.4.
*/
if ( !defined( 'ABSPATH' ) ) {
exit;
}
@christianwach
christianwach / bp-hide-name-field.php
Last active September 18, 2025 09:21
Hides the default Name field on BuddyPress Registration form and Profile Edit screens.
<?php
/**
* BP Hide Name Field
*
* Plugin Name: BP Hide Name Field
* Description: Hides the default Name field on BuddyPress Registration form and Profile Edit screens.
* Plugin URI: https://gist.github.com/christianwach/06d878edc277ce1ca8a7e59a82052744
* Version: 1.1.1
* Author: Christian Wach
* Author URI: https://github.com/christianwach
@imjjss
imjjss / gist:1902440
Created February 24, 2012 18:02
custom Front Page for BuddyPress Groups
http://wordpress.org/extend/plugins/easy-post-types/
Step 1: Download this plugin WP easy post types and activate.
Step 2: Create a post type called Groups
Click the drop down and add new. Add a new post type with the title of a groups slug. Example: say you have a group slug like this groups/bp-tricks, you would then create a group custom type post titled bp-tricks. Add something to the post editor box and hit save.
Important: If you’ve changed the slug of your Groups make sure to use the same name for your Post type!
What we are essentially doing is tricking WP and BP into using the same URL. So by creating a custom post type with the exact URL of a group we can override the front page with a WP page and then use the post editor to create anything.
Step 4: Edit a Template