Skip to content

Instantly share code, notes, and snippets.

is_woocommerce()
is_shop()
is_product_category()
is_product_category( 'shirts' )
is_product_category( array( 'shirts', 'games' ) )
is_product_tag()
is_product_tag( 'shirts' )
is_product_tag( array( 'shirts', 'games' ) )
is_product()
is_cart()
@Aeonexe
Aeonexe / settings.json
Last active June 29, 2020 18:41
Personalización de tema para VS code
{
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"window.smoothScrollingWorkaround": true,
"window.titleBarStyle": "custom",
"search.location": "panel",
"workbench.iconTheme": "material-icon-theme",
"window.zoomLevel": -1,
"liveServer.settings.donotShowInfoMsg": true,
@Aeonexe
Aeonexe / javascript
Created September 5, 2019 15:24
Snippets javascript
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
{
// Place your snippets for scss here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
add_action( 'comment_form_before', 'action_function_6020' );
function action_function_6020( $args ){
$id = $_GET['id'];
// Gets id
}