Skip to content

Instantly share code, notes, and snippets.

Avatar

David Towoju davexpression

View GitHub Profile
@carlodaniele
carlodaniele / custom_menu_admin.php
Last active May 12, 2020
A basic plugin showing how to add menu metaboxes to admin menu page
View custom_menu_admin.php
<?php
/**
* @package Custom_menu_admin
* @version 1.0
*/
/*
Plugin Name: Custom menu admin
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Carlo Daniele
@imath
imath / bp-custom.php
Created Jul 28, 2014
BuddyPress members directory : Filtrer selon meta_key/value ou trier selon meta_key
View bp-custom.php
<?php
/**
* Tu peux tester en créant un fichier bp-custom.php dans ton répertoire plugins
* @see http://codex.buddypress.org/plugindev/bp-custom-php/
*/
/******************************************************************
* 1/ filter par rapport à un couple meta_key/meta_value
@strangerstudios
strangerstudios / update_currency_per_level.php
Created Feb 4, 2014
Change currencies depending on Paid Memberships Pro level. Add this code to your active theme's functions.php or a custom plugin. This is just an example that will need to be tweaked for your needs.
View update_currency_per_level.php
/*
Change currencies depending on Paid Memberships Pro level.
Add this code to your active theme's functions.php or a custom plugin.
This is just an example that will need to be tweaked for your needs.
Other places to look into swapping currencies:
* Levels page.
* Invoices page.
* In emails.
* In membership levels table in admin.
You can’t perform that action at this time.