Skip to content

Instantly share code, notes, and snippets.

<?php
add_action('admin_init', 'add_meta_boxes', 1);
function add_meta_boxes() {
add_meta_box( 'repeatable-fields', 'Audio Playlist', 'repeatable_meta_box_display', 'post', 'normal', 'high');
}
function repeatable_meta_box_display() {
global $post;

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@brasofilo
brasofilo / jetpack-form.md
Created November 1, 2013 09:09
Cambiar Hoja de Estilo de Jetpack Form

##Cómo Cambiar la Hoja de Estilo de Jetpack Form ###/plugins/mi-estilo-jetpack/mi-estilo-jetpack.php

<?php
/**
 * Plugin Name: Cambiar Hoja de Estilo de Jetpack Form
 * Plugin URI:  https://gist.github.com/brasofilo/7262833
 * Version:     2013.11.01
 * Author:      Rodolfo Buaiz
@brasofilo
brasofilo / comment-alert.md
Created October 26, 2013 06:03
Tutorial WordPress Heartbeat API

#[Tutorial WordPress Heartbeat API][1] - Take Two

Una versión mejorada del excelente tutorial por Ubikom.

<?php
/*
Plugin Name: Live Comment Alert System
Plugin URI: http://www.ubikom.es/blog
Description: Demostrativo de la nueva HeartBeat API
@brasofilo
brasofilo / admin-block.md
Last active December 26, 2015 02:09
admin-block.md

#Bloquear Acceso Administrativo para Ciertos Roles

Basado en esta [WordPress Answer][1]
<?php
/**
 * Plugin Name: Bloquear Acceso Administrativo para Ciertos Roles
 * Version: 0.2
 * Author: Rodolfo Buaiz 
 * Plugin URI: http://wordpress.stackexchange.com/q/57206/12615
@brasofilo
brasofilo / dashboard-widget.md
Last active December 26, 2015 01:49
dashboard-widget.md

#Widget de Escritorio con Callback Handle ###--WordPress Plugin--

Demonstración de como añadir un widget de escritorio configurable. Elije 3 páginas y serán mostradas en pestañas. Basado en el ejemplo del Codex y en el artículo Tabbed Meta Box In WordPress.

@brasofilo
brasofilo / publish-to-network.php
Last active December 25, 2015 20:39
Meta box that allows publishing a post to another site of the network
<?php
/**
* Plugin Name: Publish to Network
* Plugin URI: https://gist.github.com/brasofilo/7036415
* Description: Meta box that allows publishing a post to another site of the network
* Version: 1.0
* Author: Rodolfo Buaiz
* Author URI: http://wordpress.stackexchange.com/users/12615/brasofilo
* Text Domain: sepw
* Domain Path: /languages
@brasofilo
brasofilo / wp-admin-pointers.php
Last active September 3, 2023 20:25
WordPress Admin Pointers : based on code by Stephen Harris, Tim D and Frank Bueltge. See: http://stackoverflow.com/a/19328125/1287812 and http://brasofilo.com/como-incluir-admin-pointers-en-tu-theme-o-plugin
<?php
/**
* Plugin Name: My Amdin Pointers
* Plugin URI: https://gist.github.com/brasofilo/6947539
* Version: 0.1
* Author: Rodolfo Buaiz
* Author URI: http://brasofilo.com
* Licence: GPLv3
*
@brasofilo
brasofilo / fix-backwpup-mp6-icon.php
Last active December 25, 2015 04:09
Fix BackWPUp icon for MP6
<?php
/**
* Plugin Name: Fix BackWPUp MP6 menu icon
*/
add_action( 'plugins_loaded', function()
{
if( ( !is_multisite() || is_network_admin() ) && defined( 'MP6' ) )
{
add_action(
'admin_head',
@brasofilo
brasofilo / github.php
Last active November 5, 2023 23:40
GitHub Plug-in for WordPress (Take 2) * Basic information about your repositories and its Forks and Watchers. * Based on http://www.developerdrive.com/2013/06/github-plug-in-for-wordpress/
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: GitHub Plug-in for WordPress (Take 2)
* Description: Basic information about, your repositories, and its Forks and Watchers.
* Plugin URI: https://gist.github.com/brasofilo/6898766
* Version: 2013.10.09
* Author: Rodolfo Buaiz
* Author URI: http://brasofilo.com
* License: GPL
* Text Domain: plugin_unique_name