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
selector a { | |
box-shadow: 0 0 6px 0 rgba(157, 96, 212, 0.5); | |
border: solid 1px transparent !important; | |
background-image: linear-gradient(#000, #000), linear-gradient(140deg, #5666BF, #DFDDE9) !important; | |
background-origin: border-box; | |
background-clip: content-box, border-box; | |
box-shadow: 2px 1000px 1px #000000 inset !important; | |
} |
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
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' ); | |
module.exports = { | |
...defaultConfig, | |
devServer: { | |
...defaultConfig.devServer, | |
host: 'yourdevdomain.test' | |
} | |
} |
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_shortcode('the_shortcode_tag', function($atts){ | |
// En $attts vienen todos tus attributos en forma de array | |
// Aqui solo verificas tus attributos, y si no existen, le asignas un valor por defecto | |
$atts = shortcode_atts([ | |
'atributo1' => 'valor por defecto 1', | |
'atributo2' => 'valor por defecto 2', | |
], $atts); |
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 | |
/** | |
* Plugin Name: A simple hook | |
* Plugin URI: https://example.com/ | |
* Description: Handle the basics with this plugin. | |
* Version: 1.0 | |
* Requires at least: 5.2 | |
* Requires PHP: 7.2 | |
* Author: John Doe |
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 | |
$args = [ | |
'post_type' => ['post', 'work'], | |
'posts_per_page' => -1, | |
'tax_query' => [ | |
'relation' => 'OR', | |
[ | |
'taxonomy' => 'post_tag', | |
'field' => 'slug', |
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 | |
/** | |
* Plugin Name: Rewrite Author URL | |
* Plugin URI: https://example.com/plugins/the-basics/ | |
* Description: A basic rewrite rules example. | |
* Version: 1.0.0 | |
* Requires at least: 5.2 | |
* Requires PHP: 7.4 | |
* Author: Enrique Chavez |
This file has been truncated, but you can view the full file.
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
/* | |
! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com | |
*/ | |
/* | |
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) | |
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) | |
*/ | |
*, |
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
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] |
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 | |
/** | |
* Plugin Name: Post View Reorder | |
* Plugin URI: https://example.com/ | |
* Description: Just a test plugin, do not use it on production. | |
* Version: 1.0.0 | |
* Requires at least: 5.2 | |
* Author: Enrique Chavez | |
* Author URI: https://enriquechavez.co/ | |
*/ |
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('rest_endpoints', function ($endpoints) { | |
if (isset($endpoints['/wp/v2/users'])) { | |
unset($endpoints['/wp/v2/users']); | |
} | |
if (isset($endpoints['/wp/v2/users/(?P<id>[\d]+)'])) { | |
unset($endpoints['/wp/v2/users/(?P<id>[\d]+)']); | |
} |
NewerOlder