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
wp wpvulnerability core | |
wp wpvulnerability plugins | |
wp wpvulnerability themes |
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
https://codewp.ai/ | |
https://codewp.tawk.help/ | |
https://codewp.ai/best-practices-for-prompting-codewp/ | |
https://codewp.ai/snippets/ | |
https://codewp.ai/snippets/?_generation_mode=701 | |
https://codewp.ai/snippets/?_generation_mode=709 |
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
https://wpactivitylog.com/support/kb/plugin-database-documentation/ | |
https://wpactivitylog.com/support/kb/wordpress-activity-log-deleted-plugin-uninstall-option/ | |
https://wpactivitylog.com/support/kb/activity-log-retention-policies/ | |
https://wpactivitylog.com/support/kb/wordpress-activity-log-slow-down-website/ |
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 | |
// Example long query (2.557 seconds): | |
// @see https://radleysustaire.com/s3/1c66a3/ | |
// Example optimized query (0.316 seconds): | |
// @see https://radleysustaire.com/s3/fb794e/ | |
// Example of what your code would look like: | |
$args = array( | |
'taxonomy' => array( 'account-menu' ), |
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 | |
/** | |
* Set custom user variable for WooCommerce Wave Connector | |
* Replace display name with first name & last name in name value | |
* | |
* @param array $variables get variables. | |
* @param array $user_ids get user's id. | |
* @return array | |
*/ | |
function custom_customer_variable( $variables, $user_ids ) { |
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
property AIRDROP_FOLDER : "Path:to:AirDrop:Folder:in:Alias:format" | |
property QUARANTINE_KEY : "59" | |
property GET_QUARANTINE_COMMAND_START : "ls -l -@ '" | |
property GET_QUARANTINE_COMMAND_END : "' | tr '\\n' ' ' | sed 's/.*com\\.apple\\.quarantine\\s*\\(\\d*\\)/ \\1/' | awk '{$1=$1};1'" | |
on adding folder items to this_folder after receiving added_items | |
repeat with i from 1 to length of added_items | |
set current_item to item i of added_items | |
set quarantine_type to getQuarantineType(POSIX path of current_item) |
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
async function addToCache(urls) { | |
const pageCache = await window.caches.open('page-cache'); | |
await pageCache.addAll(urls); | |
} | |
// Check that service workers are registered | |
if ('serviceWorker' in navigator) { | |
// Use the window load event to keep the page load performant | |
window.addEventListener('load', () => { | |
addToCache(['/hello-world/', '/main-page/']); |
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 | |
// Upload to Custom folder in media_handle_upload | |
https://wordpress.stackexchange.com/questions/290257/media-handle-upload-with-custom-upload-folder | |
//Download image and to attachment | |
https://codex.wordpress.org/Function_Reference/media_handle_sideload | |
//change SrcSet | |
https://gschoppe.com/wordpress/fix-broken-images-after-wordpress-4-4-update/ |
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 | |
/** | |
* Integrate custom post types into Flatsome 3 page builder application using a child theme. | |
* | |
* This will provide: | |
* | |
* 1. Page Builder Editor support for custom post types | |
* 2. Integration with page builder post element components | |
**/ |
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
require "rubygems" | |
require "twitter" | |
# get these from apps.twitter.com | |
CONSUMER_KEY = "foo" | |
CONSUMER_SECRET = "bar" | |
OAUTH_TOKEN = "blee" | |
OAUTH_TOKEN_SECRET = "baz" | |
TWITTER_USER = "your_username" # needs to be the one associated with keys above |
NewerOlder