Skip to content

Instantly share code, notes, and snippets.

<div id="my-topbar">¡Aviso importante para tod@s! Si necesitan más información <a href="https://avalos.sv">clic aquí</a>.</div>
<?php
/*
Plugin Name: Tu plugin
Plugin URI: https://tuweb.com
Description: Plugin con las funciones personalizadas para tu web
Version: 1.0.0
Author: Tu Nombre
Author URI: https://tuweb.com
License: GPL 2+
License URI: https://tuweb.com
@alexavalossv
alexavalossv / cpt-ejemplo.php
Last active January 10, 2020 00:46
Ejemplo de como podés crear un CPT con lo mínimo necesario para funcionar en tu web con WordPress.
<?php
/*
Plugin Name: Tu CPT's
Plugin URI: https://tuweb.com
Description: Plugin para crear CPT's
Version: 1.0.0
Author: Tu Nombre
Author URI: https://tuweb.com
License: GPL 2+
License URI: https://tuweb.com
@alexavalossv
alexavalossv / mi-login.php
Last active December 27, 2019 08:54
Personalizar imagen wp-login de WordPress
<?php
/*
Plugin Name: Tu plugin
Plugin URI: https://tuweb.com
Description: Plugin con las funciones personalizadas para tu web
Version: 1.0.0
Author: Tu Nombre
Author URI: https://tuweb.com
License: GPL 2+
License URI: https://tuweb.com
@alexavalossv
alexavalossv / off-xml-rpc.php
Last active September 26, 2019 00:43
Apagar XML-RPC
# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>