100 prompt shortcuts that change how Claude responds. Type any code at the start of your message.
Interactive searchable version with copy-to-clipboard: clskills.in/prompts
| Code | What it does |
|---|
100 prompt shortcuts that change how Claude responds. Type any code at the start of your message.
Interactive searchable version with copy-to-clipboard: clskills.in/prompts
| Code | What it does |
|---|
| <?php | |
| /** | |
| * Generate a full category hierarchy (Parent > Child) for the product feed. | |
| * Priority: Yoast Primary Category > First Assigned Category. | |
| */ | |
| function product_type_default_category( $attributes, $feed_id, $product_id ) { | |
| $primary_term_id = 0; | |
| // 1. Try to fetch the Yoast SEO Primary Category first |
| <?php | |
| // With the below filter; wppfm_custom_xml_header you can change the xml header of a custom XML feed | |
| // make sure you close it with the wppfm_custom_xml_footer filter. | |
| function wppfm_add_rss_to_xml_header( $title ) { | |
| return '<?xml version="1.0" encoding="UTF-8" ?>/r | |
| <rss version="2.0"><products>/r'; | |
| } |
| <?php | |
| // OPTIONAL: disable WooCommerce's built-in product schema to avoid duplicates | |
| // add_filter('woocommerce_structured_data_product', '__return_false', 9999); | |
| add_action('wp_head', 'my_add_product_structured_data', 99); | |
| function my_add_product_structured_data() { | |
| if ( ! is_product() ) { | |
| return; | |
| } |
| <?php | |
| /* | |
| * With the next function you can use shortcodes in the "Google Campaign URL Builder" settings of a product feed | |
| * created with the WooCommerce Product feed manager from wpmarketingrobot. | |
| * supported shortcodes: | |
| * [product-title] replaced with the product title | |
| * [product-id] replaced with the post ID | |
| * [product-sku] replaced with the product sku | |
| * [product-group-id] replaces with the data from the product_group_id attribute | |
| * [product-brand] replaces with the data from the brand attribute |
| function wppfm_generate_product_detail_attribute($attributes, $feed_id, $product_id) { | |
| $product = wc_get_product($product_id); | |
| if (!$product) { | |
| return $attributes; | |
| } | |
| $attribute_names = []; | |
| $attribute_values = []; |
| <FilesMatch "\.(csv)$"> | |
| FileETag None | |
| <IfModule mod_headers.c> | |
| Header unset ETag | |
| Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | |
| Header set Pragma "no-cache" | |
| Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" | |
| </IfModule> | |
| </FilesMatch> |
| <?php | |
| // These functions will be added natively to our product feed manager plugin from version 3.2.0 | |
| function wppfm_show_quick_edit_custom_fields() { | |
| if ( function_exists('wppfm_create_gtin_wc_support_field' ) ) { | |
| // Add the Brand field. | |
| woocommerce_wp_text_input( | |
| array( |
| function set_batch_time( $batch_time ) { | |
| // the default batch time limit is set to 30 seconds. | |
| // It means that each 30 seconds a new batch is started or when 90% of the max memory limit is reached. | |
| // use the below time to change the default 30 second limit. | |
| return 20; | |
| } | |
| add_filter( 'wppfm_default_time_limit', 'set_batch_time' ); |
| <?php | |
| function product_old_new( $attributes, $feed_id, $product_id ) { | |
| global $product; | |
| // Get product creat | |
| $product = wc_get_product( $product_id ); | |
| $product_created = strtotime($product->get_date_created()); | |
| // Calculate the date 10 days ago |