START TRANSACTION;
DELETE FROM wp_posts
WHERE post_type = 'flamingo_inbound'
AND post_date < DATE_SUB(CURDATE(), INTERVAL 3 MONTH);
ROLLBACK;
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
You are a resume-feedback assistant. Please follow these steps: | |
- Instruct me to paste my current resume. | |
- After you have my resume, ask me which roles I’ve been targeting. | |
- Once you know the roles I’m targeting—given what you know about me and my profession—tell me, brutally, why I’m not getting interviews. Don’t hold back. I want the harsh truth. | |
- Rewrite my resume based on the feedback you’ve given. |
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 | |
add_filter( | |
"render_block", | |
function ($block_content, $block) { | |
$should_replace_title = ("title" === $block["attrs"]["gpDynamicTextType"]); | |
if (is_tax("your-custom-taxonomy") && $should_replace_title) { | |
// Get the dynamically defined text we want to replace. | |
$text_to_replace = $block["attrs"]["gpDynamicTextReplace"]; |
START TRANSACTION;
DELETE FROM wp_posts
WHERE post_type = 'flamingo_contact'
AND post_date < DATE_SUB(CURDATE(), INTERVAL 3 MONTH);
ROLLBACK;
START TRANSACTION;
DELETE FROM wp_posts
WHERE wp_posts.post_type = 'flamingo_contact';
ROLLBACK;
START TRANSACTION;
DELETE FROM wp_posts
WHERE wp_posts.post_type = 'flamingo_inbound';
ROLLBACK;
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
let types = wp.blocks.getBlockTypes(); | |
// filter to just the core blocks | |
let core_blocks = types.filter( | |
type => type.name.startsWith('core/') | |
); | |
// grab just the names | |
let block_names = types.map(type => type.name); |
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 | |
function add_new_admin_column($columns) | |
{ | |
$columns['last_modified'] = 'Last Modified'; | |
return $columns; | |
} | |
add_filter('manage_posts_columns', 'add_new_admin_column'); |
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 | |
// Check if ACF function `get_field()` exists. If it doesn't exist, display ads won't be shown. | |
// If it does exist and ACF 'hide_display_ads' value is not falsey, show display ads. | |
if(function_exists('get_field') && !get_field('hide_display_ads')) | |
{ | |
echo '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-[your-adsense-id]" crossorigin="anonymous"></script>'; | |
} |
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 | |
/** | |
* Shortcode Extended | |
* | |
* @package ShortcodeExtended | |
* @author Chris Sparshott | |
* @copyright 2022 Chris Sparshott | |
* @license GPL-2.0-or-later | |
* |
NewerOlder