wp post list --post_type=post --format=ids | tr ' ' '\n' | xargs -I % wp post meta add % _thumbnail_id {{ATTACHMENT_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
<?php | |
class OpenCartValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
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 | |
/** | |
* Returns the path to a category in the format 1_2_3 | |
* @param int $category_id | |
* @return string the path to the category | |
*/ | |
public function getCategoryPath($category_id){ | |
$path = ''; |
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
/** | |
* Disable author pages | |
*/ | |
add_action( 'template_redirect', function(){ | |
global $wp_query; | |
if ( is_author() && !is_404() ) { | |
$wp_query->set_404(); | |
status_header( 404 ); | |
nocache_headers(); | |
} |
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>console.log({{ product | json }});</script> |
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
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
$_gridle-version: "1.0.0"; | |
$gridle-settings : "{"; | |
$gridle-settings : "#{$gridle-settings} \"version\" : \"#{$_gridle-version}\""; | |
$gridle-settings : "#{$gridle-settings} }"; | |
#gridle-settings { |
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$alpha: ( | |
color: "red" | |
); |
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
<div class="list"> | |
<div class="item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Debitis vero architecto et at atque deserunt consectetur provident.</div> | |
<div class="item">Doloremque eveniet, repudiandae magni consequatur illum voluptatem,ad dolor.</div> | |
<div class="item">Odit nostrum excepturi. Aspernatur, expedita impedit perferendis, pariatur aliquam sed facilis.</div> | |
<div class="item">Cumque ipsam est </div> | |
<div class="item">Nulla maxime veritatis, ut eveniet. Nobis ut consequatur cumque nulla totam nisi obcaecati, iste aliquam dolore minus consectetur, magni veritatis? Neque id, harum expedita, natus quas voluptatibus et molestias soluta!</div> | |
<div class="item">Eveniet nostrum laudantium ea repellat voluptatem consectetur quis facere animi labore! Accusantium, pariatur possimus corporis quod placeat, doloribus eum labore velit maiores autem eius deserunt, inventore unde officiis consequatur quos.</div> | |
<div class="item">Minima veniam non quis nihil placeat recusandae id e |
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 | |
App::uses('MediaAppModel', 'Media.Model'); | |
App::uses('Folder', 'Utility'); | |
App::uses('File', 'Utility'); | |
/** | |
* Attachment Model | |
* | |
*/ | |
class Attachment extends MediaAppModel { |
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
Open a folder in termninal as a workspace then run.... | |
$ mkdir app | |
$ cd app | |
$ touch composer.json | |
Add this to composer.json | |
{ |
NewerOlder