START TRANSACTION;
DELETE FROM wp_posts
WHERE post_type = 'flamingo_inbound'
AND post_date < DATE_SUB(CURDATE(), INTERVAL 3 MONTH);
ROLLBACK;
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
| /*========================== | |
| 1.) Google Sheets spreadsheet should have a sheet named 'source' and a another called 'target'. | |
| 2.) 'source' sheet should contain raw/unprocessed export of 'From' and 'To' columns. Therefore, column selectors may need updating. | |
| 3.) Copy and paste each of the formulas below as appropriate into your 'target' sheet. | |
| ==========================*/ | |
| /*. From column */ | |
| =ARRAYFORMULA( |
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
| /*================ | |
| In the absence of support to Bulk Export all rewrite rules from WP Engine, I wrote the following snippet. | |
| 1.) Navigate to the Rewrite Rules in the Web Rules section of your WP Engine dashboard. | |
| 2.) Copy and paste the below code into your web dev console. | |
| 3.) Save the CSV to your machine. | |
| ================*/ |
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
| find /home /mnt /media /srv -type f \( -name '.DS_Store' -o -name '._*' \) -delete |
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
| 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 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 | |
| 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 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
| 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); |
NewerOlder