- Use local site "app" fodler as root for Laravel
- Create a .env file using info from Local site domain
- CLI Run php artisan key:generate
- CLI Run php artisan config:cache
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheelWordPress install is a custom install
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 gulp = require('gulp'); | |
| sass = require('gulp-sass'); | |
| autoprefixer = require('gulp-autoprefixer'); | |
| gulp.task('sass',function(){ | |
| return gulp.src('/scss/*.scss') | |
| .pipe(sass({ | |
| outputStyle: 'expanded' | |
| })) | |
| .pipe(autoprefixer({ |
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
| //Archivo dentro del plugin Realty Portal Listing | |
| // includes/property/library/ | |
| //Linea 434 | |
| public function get_price() { | |
| $price = trim( get_post_meta( $this->ID, 'price', true ) ); | |
| //Agregue un argumento mas en el rp_format_price que es el ID para que dentro de la funcion |
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 | |
| //In ajax.php | |
| function sendPublicform(){ | |
| if($_POST['typeform'] == 'sometypeform'){ | |
| //some actions | |
| wp_send_json(array('success' => true,'message' => __('Saved','themedomain'))); | |
| } | |
| } | |
| add_action('wp_ajax_sendPublicform', 'sendPublicform'); |
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 | |
| //define post type | |
| 'post_type' => 'post', | |
| //Disable cache | |
| $query = get_posts( array( 'posts_per_page' => 1, 'cache_results' => false ) ); | |
| //No terms cache | |
| 'update_post_term_cache' => false, |
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 | |
| if (defined('WP_DEBUG_LOG') && WP_DEBUG_LOG) { | |
| ini_set( 'error_log', WP_CONTENT_DIR . '/themes/{{themename}}/log.txt' ); | |
| } |
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="apple-touch-icon" sizes="180x180" href="fav/apple-touch-icon.png"> | |
| <link rel="icon" type="image/png" sizes="32x32" href="fav/favicon-32x32.png"> | |
| <link rel="icon" type="image/png" sizes="16x16" href="fav/favicon-16x16.png"> | |
| <link rel="manifest" href="fav/site.webmanifest"> | |
| <link rel="mask-icon" href="fav/safari-pinned-tab.svg" color="#5bbad5"> | |
| <link rel="shortcut icon" href="fav/favicon.ico"> | |
| <meta name="msapplication-TileColor" content="#ffffff"> | |
| <meta name="msapplication-config" content="fav/browserconfig.xml"> | |
| <meta name="theme-color" content="#ffffff"> |
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="screen.css" media="screen"> | |
| <style media="screen"> | |
| body { | |
| background-color: #f0f0f0; | |
| font: 1em/150% verdana, arial, helvetica, sans-serif; | |
| text-align: center; | |
| } | |
| #container { |