Skip to content

Instantly share code, notes, and snippets.

View espellcaste's full-sized avatar

Renato Alves espellcaste

View GitHub Profile
<?php
/**
* Plugin Name: WooCommerce Installments
* Plugin URI: http://claudiosmweb.com/
* Description: Added the price with 3 installments without interest.
* Author: claudiosanches
* Author URI: http://www.claudiosmweb.com/
* Version: 1.0
* License: GPLv2 or later
*/
@espellcaste
espellcaste / impressão-landscape
Last active December 18, 2015 12:19
Imprimir a página em modo landscape.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Imnpress&atilde;o</title>
<style>
@media print{
#print{
width: 100%;
height: 100%;
margin: 0% 0% 0% 0%;
@espellcaste
espellcaste / gist:5478731
Last active December 16, 2015 18:38
Creating extra profile info in the members profile header with this function. Change field= to the field you want to display.
function extra_profile_fields_output(){
global $bp;
$field_text = bp_get_profile_field_data( 'field=Country' ) );
echo '<span class="profile-fields">' .$field_text. '</span>';
}
add_action( 'bp_profile_header_meta', 'extra_profile_fields_output' );