This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_init', 'wpmico_custom_admin_init' ); | |
function wpmico_custom_admin_init() { | |
if (!empty($_GET['dev'])) { | |
//phpinfo();die; | |
} | |
} | |
add_action('acf/init', 'my_acf_init'); | |
function my_acf_init() { | |
acf_update_setting('capability', 'edit_posts'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>hola mundo</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Route; | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Schema; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
class PersonaController extends Controller | |
{ | |
function persona() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Definimos las variables | |
var FormID = 0; | |
window.addEventListener('message', function(event){ | |
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmit') { | |
window.dataLayer = window.dataLayer || []; | |
// Guardamos el segundo id | |
FormID = event.data.id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<div class="contrasena"> | |
<input type="password" id="contrasena"> | |
<i class="fa fa-eye" id="mostrar"></i> | |
</div> | |
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> | |
<script> | |
$(function($) { | |
$('#mostrar').click(function() { | |
if ($(this).hasClass('fa-eye')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // register a custom post status 'payment-confirmed' for Orders | |
add_action( 'init', 'register_custom_post_status', 20 ); | |
function register_custom_post_status() { | |
register_post_status( 'wc-payment-confirmed', array( | |
'label' => _x( 'Pago confirmado', 'Order status', 'woocommerce' ), | |
'public' => true, | |
'exclude_from_search' => false, | |
'show_in_admin_all_list' => true, | |
'show_in_admin_status_list' => true, | |
'label_count' => _n_noop( 'Pago confirmado <span class="count">(%s)</span>', 'Pago confirmado <span class="count">(%s)</span>', 'woocommerce' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php add_filter( 'woocommerce_states', 'c7_woocommerce_states' ); | |
function c7_woocommerce_states( $states ) { | |
$states['PE'] = array( | |
'LMA' => 'Lima Metropolitana', | |
'AMA' => 'Amazonas', | |
'ANC' => 'Ancash', | |
'APU' => 'Apurímac', | |
'ARE' => 'Arequipa', | |
'AYA' => 'Ayacucho', | |
'CAJ' => 'Cajamarca', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $categorias = ["alfa", "beta"]; | |
$args = [ | |
'post_type' => 'post', | |
'posts_per_page' => -1, | |
'orderby' => 'rand', | |
'tax_query' => [ | |
'relation' => 'AND', | |
[ | |
'taxonomy' => 'grupo', | |
'terms' => ['alfa', 'beta'], |
NewerOlder