Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
💥👩‍🚀👨‍🚀💥

LOOR Lab loorlab

💻
💥👩‍🚀👨‍🚀💥
View GitHub Profile
View multiple_tabs_account_ultimate_member.php
<?php
// functions.php
// ACCOUNT TAB 1
add_filter(‘um_account_page_default_tabs_hook’, ‘my_custom_tab_in_um’, 100 );
function my_custom_tab_in_um( $tabs ) {
$tabs[800][‘tab1’][‘icon’] = ‘um-faicon-arrow-circle-o-down’;
$tabs[800][‘tab1’][‘title’] = ‘Tab 1’;
$tabs[800][‘tab1’][‘custom’] = true;
@loorlab
loorlab / acf_select_ciudades_colombia_plain.txt
Last active Jul 22, 2020
ACF Select : Plain Text : Ciudades Colombia
View acf_select_ciudades_colombia_plain.txt
arauca : Arauca
armenia : Armenia
barranquilla : Barranquilla
bogota : Bogotá
bucaramanga : Bucaramanga
cali : Cali
cartagena : Cartagena
cucuta : Cúcuta
florencia : Florencia
ibague : Ibagué
@loorlab
loorlab / wp-disable-plugin-update.php
Created Jul 11, 2020 — forked from ebetancourt/wp-disable-plugin-update.php
WordPress - Disable specific plugin update check
View wp-disable-plugin-update.php
<?php
// have to add that opening tag to get syntax highlighting... ¯\_(ツ)_/¯
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {
@loorlab
loorlab / country-shortcode.php
Last active Jul 6, 2020 — forked from MatthewEppelsheimer/country-shortcode.php
WP Contact Form 7 shortcode with list of Countries
View country-shortcode.php
<?php
/*
Localizations:
- [Spanish](https://gist.github.com/MatthewEppelsheimer/1498955#gistcomment-3317461) props @chdgp
UPDATED: 2020-03-09
@loorlab
loorlab / recursos_WPO.md
Created May 16, 2020
Recursos Web Performance Optimization (WPO) - LOOR Lab
View recursos_WPO.md

Recursos de Web Performance Optimization (WPO)

  • https://www.fastorslow.com/ - Recurso para probar todas las métricas de rendimiento de un sitio Web desde distintas ubicaciones en todo el mundo.
@loorlab
loorlab / select_html_municipios_colombia.html
Created Mar 24, 2020
Select Listado HTML Municipios - Colombia
View select_html_municipios_colombia.html
<label for="city" class="control-label">Municipio</label>
<select class="form-control" id="city" required>
<option value="">Selecciona una opción...</option>
<option value="Abejorral">Abejorral</option>
<option value="Abrego">Abrego</option>
<option value="Abriaquí">Abriaquí</option>
<option value="Acacías">Acacías</option>
<option value="Acandí">Acandí</option>
<option value="Acevedo">Acevedo</option>
<option value="Achí">Achí</option>
@loorlab
loorlab / select_html_ciudades_colombia.html
Created Mar 23, 2020
Select Listado HTML Ciudades - Colombia
View select_html_ciudades_colombia.html
<label for="inputCiudadLine2" class="control-label">Ciudad</label>
<select class="form-control" id="inputCiudadLine2">
<option value="">-</option>
<option value="Arauca">Arauca</option>
<option value="Armenia">Armenia</option>
<option value="Barranquilla">Barranquilla</option>
<option value="Bogotá">Bogotá</option>
<option value="Bucaramanga">Bucaramanga</option>
<option value="Cali">Cali</option>
<option value="Cartagena">Cartagena</option>
@loorlab
loorlab / recursos_productividad.md
Last active May 16, 2020
Recursos [Herramientas - Trabajo en equipo - Productividad]
View recursos_productividad.md
View rewrite_blog_postname_default_WP.php
<?php
// functions.php
/**
* Rewrite /blog postname
*/
function add_rewrite_rules( $wp_rewrite ){
$new_rules = array(
'blog/(.+?)/?$' => 'index.php?post_type=post&name='. $wp_rewrite->preg_index(1),
);
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
You can’t perform that action at this time.