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
add_filter( 'jetpack_just_in_time_msgs', '__return_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
/* | |
* Blacklist specific Gutenberg blocks | |
* | |
* @author Misha Rudrastyh | |
* @link https://rudrastyh.com/gutenberg/remove-default-blocks.html#blacklist-blocks | |
* @link https://wpturbo.dev/disable-wordpress-blocks/ | |
*/ | |
add_filter( 'allowed_block_types_all', 'misha_blacklist_blocks' ); | |
function misha_blacklist_blocks( $allowed_blocks ) { |
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
define( 'WP_CACHE', false ); | |
// define( 'WP_ENVIRONMENT_TYPE', 'development' ); | |
define( 'WP_ENVIRONMENT_TYPE', 'local' ); // https://wordpress.org/plugins/display-environment-type/ | |
/* Modified directories can be used for version control */ | |
define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] ); // alt: define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/path/to/wordpress' ); | |
define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] ); // alt: define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/path/to/wordpress' ); | |
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/path/to/wp-content' ); | |
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/path/to/wp-content' ); | |
define( 'UPLOADS', 'media' ); |
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
This was submitted on: {embed_url} | |
All form submissions can be viewed at: https://domain.com/wp-admin/admin.php?page=gf_entries&id=1 | |
Below is all the info submitted. | |
{all_fields} | |
|
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
{ | |
"requestedUrl": "https://mundopepsi.com/", | |
"finalUrl": "https://mundopepsi.com/", | |
"lighthouseVersion": "9.6.5", | |
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5005.115 Safari/537.36", | |
"fetchTime": "2022-08-19T22:04:40.374Z", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse", | |
"hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/102.0.5005.115 Safari/537.36", | |
"benchmarkIndex": 1680.5 |
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
{ | |
"lighthouseVersion": "9.6.1", | |
"requestedUrl": "https://mundopepsi.com/", | |
"finalUrl": "https://mundopepsi.com/", | |
"fetchTime": "2022-08-19T20:37:06.772Z", | |
"gatherMode": "navigation", | |
"runWarnings": [], | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Safari/537.36 Chrome-Lighthouse", |
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
module.exports = { | |
'root': true, | |
'extends': 'eslint:recommended', | |
'globals': { | |
'wp': true, | |
}, | |
'env': { | |
'node': true, | |
'es6': true, | |
'amd': true, |
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 | |
/** | |
* Admin assets | |
*/ | |
add_action('admin_enqueue_scripts', function () { | |
// global $post; | |
// $my_post_type = 'page'; | |
if ( stristr( $_SERVER['REQUEST_URI'], 'post.php' ) !== false // just for the post editor | |
// && is_object( $post ) |
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
/////////////////////////// | |
// /resources/views/partials/shortcodes/faqs.blade.php | |
<ul class="accordion span12" data-allow-all-closed="true" data-deep-link="true" data-deep-link-smudge="true" data-deep-link-smudge-delay="600" data-accordion id="deeplinked-accordion-with-smudge"> | |
@foreach($faqs as $faq) | |
<li class="accordion-item" data-accordion-item> | |
<a href="#{{ $category }}{{ $loop->iteration }}" class="accordion-title">{!! $faq->post_title !!}</a> | |
<div class="accordion-content" data-tab-content id="answer{{ $loop->iteration }}"> | |
{!! $faq->post_content !!} | |
</div> | |
</li> |
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
class Page extends Controller | |
{ | |
// Pass on all fields from Advanced Custom Fields to the view | |
protected $acf = true; | |
// Pass on only field_1 from Advanced Custom Fields to the view | |
// protected $acf = 'project_intro_fields'; | |
// Pass on multiple fields from Advanced Custom Fields to the view | |
// protected $acf = ['field_1', 'field_2']; |
NewerOlder