This file contains 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
# create a local .env file with the following 4 properties: | |
# | |
# MYSQL_DATABASE=<something> | |
# MYSQL_USER=<something> | |
# MYSQL_PASSWORD=<something> | |
# MYSQL_ROOT_PASSWORD=<something> | |
# | |
version: "3.8" | |
services: |
This file contains 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
Enqueue scripts | |
functions.php | |
function smpx_scripts(){ | |
wp_enqueue_script( 'bolsacom', get_template_directory_uri().'/assets/js/bolsacom.js', array('jquery'), rand(), true ); | |
// PRODUCT VALORATIONS | |
wp_localize_script('bolsacom', '$ajax_vars', array( | |
'url' => admin_url( 'admin-ajax.php' ), |
This file contains 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
/*-----------------------------------------------------------------------*/ | |
/* Display different types of post thumbnails | |
/* USE: | |
/* Include this code in your functions.php file | |
/* Include this function inside the loop: nitro_post_thumbnail() | |
/* Options: | |
/* nitro_post_thumbnail(true) - include links to post for images | |
/*-----------------------------------------------------------------------*/ | |
if( !function_exists( 'nitro_post_thumbnail' ) ): | |
function nitro_post_thumbnail( $link = false ){ |
This file contains 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
/** | |
Empty Trash Automatically | |
set the number of days and reduce the size of your database. | |
*/ | |
define('EMPTY_TRASH_DAYS', 5 ); |
This file contains 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
/** | |
Put this in wp-config.php | |
*/ | |
define('FS_METHOD', 'direct'); |
This file contains 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 wp_redirect( home_url() ); exit; ?> |
This file contains 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
var $lat, | |
$lon, | |
$ini = 0, | |
$ini_data_error = false; | |
/*------------------------------------*/ | |
/* DATOS ACTUALES */ | |
/*------------------------------------*/ | |
var date = new Date(), |
This file contains 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="owlcarousel/owl.carousel.min.css"> | |
<link rel="stylesheet" href="owlcarousel/owl.theme.default.min.css"> |
This file contains 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
$currentTaxonomy = get_query_var('taxonomy'); | |
if ($currentTaxonomy) { | |
$taxObject = get_taxonomy($currentTaxonomy); | |
var_dump($taxObject); | |
} |
This file contains 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
function shortURL() { | |
return 'https://fitodac.com/'; | |
} | |
add_shortcode('myurl', 'shortURL'); |
NewerOlder