热门角色不仅是灵感来源,更是你的效率助手。通过精挑细选的角色提示词,你可以快速生成高质量内容、提升创作灵感,并找到最契合你需求的解决方案。让创作更轻松,让价值更直接!
我们根据不同用户需求,持续更新角色库,让你总能找到合适的灵感入口。
本提示词专为WordPress开发场景设计,帮助用户高效创建、定制和管理WordPress网站。它通过分步任务拆解和链式思维推理,提供主题构建、插件开发和性能优化的专业指导。亮点包括:基于用户输入的设计偏好、功能需求和性能目标,生成可操作的代码片段或配置建议;支持多业务场景适配,如企业官网、电商平台或博客系统;强调安全性和最佳实践,避免常见开发陷阱。它能显著减少开发时间,提升网站质量,适用于开发者、设计师或内容管理者,无需深厚技术背景即可获得定制化解决方案。描述字数满足150-200字要求,突出实用性和易用性。
示例 theme.json(精简,作为基础样式与响应式基线):
{
  "version": 2,
  "settings": {
    "typography": {
      "fontFamilies": [
        { "fontFamily": "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif", "name": "System Sans", "slug": "system-sans" }
      ],
      "fontSizes": [
        { "slug": "sm", "size": "14px" },
        { "slug": "base", "size": "16px" },
        { "slug": "lg", "size": "20px" },
        { "slug": "xl", "size": "28px" }
      ],
      "lineHeight": "1.7"
    },
    "color": {
      "palette": [
        { "slug": "bg", "color": "#FFFFFF", "name": "Background" },
        { "slug": "text", "color": "#0F172A", "name": "Text" },
        { "slug": "muted", "color": "#475569", "name": "Muted" },
        { "slug": "brand", "color": "#0EA5E9", "name": "Brand" }
      ]
    },
    "spacing": { "spacingScale": { "steps": 8 }, "units": [ "px", "rem", "vw" ] },
    "layout": { "contentSize": "720px", "wideSize": "1100px" }
  },
  "styles": {
    "color": { "background": "var(--wp--preset--color--bg)", "text": "var(--wp--preset--color--text)" },
    "elements": { "link": { "color": { "text": "var(--wp--preset--color--brand)" } } }
  }
}
在 functions.php 中启用主题支持与若干性能优化:
<?php
// 主题支持
add_action('after_setup_theme', function () {
  add_theme_support('title-tag');
  add_theme_support('post-thumbnails');
  add_theme_support('responsive-embeds');
  add_theme_support('html5', ['search-form','comment-form','comment-list','gallery','caption','style','script']);
  add_theme_support('wp-block-styles');
  register_nav_menus(['primary' => '主导航']);
});
// 性能微优化:禁用无关输出
add_action('init', function () {
  remove_action('wp_head','wp_generator');
  remove_action('wp_head','rest_output_link_wp_head');
  remove_action('wp_head','rsd_link');
  remove_action('wp_head','wlwmanifest_link');
  remove_action('wp_head','print_emoji_detection_script',7);
  remove_action('admin_print_scripts','print_emoji_detection_script');
  remove_action('wp_print_styles','print_emoji_styles');
  remove_action('admin_print_styles','print_emoji_styles');
  remove_action('wp_head','wp_oembed_add_discovery_links');
  remove_action('wp_head','wp_shortlink_wp_head');
});
// 资源提示(如有CDN可替换域名)
add_filter('wp_resource_hints', function ($urls, $relation_type) {
  if ($relation_type === 'preconnect') {
    $urls[] = 'https://fonts.gstatic.com'; // 若使用Google Fonts则保留,否则移除
  }
  return $urls;
}, 10, 2);
注册CPT/分类与页面自动创建:
// 注册CPT与分类
add_action('init', function () {
  register_post_type('product', [
    'label' => '产品',
    'public' => true,
    'show_in_rest' => true,
    'has_archive' => true,
    'rewrite' => ['slug' => 'products'],
    'supports' => ['title','editor','thumbnail','excerpt','custom-fields']
  ]);
  register_taxonomy('product_category','product', [
    'label' => '产品分类',
    'hierarchical' => true,
    'show_in_rest' => true
  ]);
  // 私有线索
  register_post_type('lead', [
    'label' => '线索',
    'public' => false,
    'show_ui' => true,
    'supports' => ['title','editor','custom-fields'],
    'capability_type' => 'post',
    'map_meta_cap' => true
  ]);
});
// 主题启用时自动创建页面与菜单
add_action('after_switch_theme', function () {
  // 创建页面辅助
  $ensure_page = function ($title, $slug, $content = '') {
    $page = get_page_by_path($slug);
    if (!$page) {
      return wp_insert_post(['post_title'=>$title,'post_name'=>$slug,'post_status'=>'publish','post_type'=>'page','post_content'=>$content]);
    }
    return $page->ID;
  };
  $home_id = $ensure_page('首页', 'home',
    '<!-- wp:heading {"level":1} --><h1>欢迎来到我们</h1><!-- /wp:heading -->
     <!-- wp:paragraph --><p>极简、清晰、可信赖的品牌体验。</p><!-- /wp:paragraph -->');
  $products_content = '<!-- wp:query {"queryId":1,"query":{"postType":"product","perPage":12}} -->
    <div class="wp-block-query"><!-- wp:post-template --><!-- wp:post-featured-image {"isLink":true} /-->
    <!-- wp:post-title {"isLink":true} /--><!-- wp:post-excerpt /--><!-- /wp:post-template --></div><!-- /wp:query -->';
  $products_page_id = $ensure_page('产品', 'products', $products_content);
  $contact_content = '<!-- wp:heading {"level":1} --><h1>联系与咨询</h1><!-- /wp:heading -->
    <!-- wp:paragraph --><p>填写表单将自动生成线索,稍后与您联系。</p><!-- /wp:paragraph -->
    <!-- wp:shortcode -->[mb_lead_form]<!-- /wp:shortcode -->';
  $contact_id = $ensure_page('联系', 'contact', $contact_content);
  // 设置首页
  update_option('show_on_front', 'page');
  update_option('page_on_front', $home_id);
  // 固定链接(可选启用)
  if (get_option('permalink_structure') !== '/%postname%/') {
    update_option('permalink_structure', '/%postname%/');
    flush_rewrite_rules();
  }
  // 导航菜单
  $menu_id = wp_create_nav_menu('主导航');
  if (!is_wp_error($menu_id)) {
    wp_update_nav_menu_item($menu_id, 0, ['menu-item-title'=>'首页','menu-item-object'=>'page','menu-item-object-id'=>$home_id,'menu-item-type'=>'post_type','menu-item-status'=>'publish']);
    wp_update_nav_menu_item($menu_id, 0, ['menu-item-title'=>'产品','menu-item-url'=>get_post_type_archive_link('product'),'menu-item-type'=>'custom','menu-item-status'=>'publish']);
    wp_update_nav_menu_item($menu_id, 0, ['menu-item-title'=>'联系','menu-item-object'=>'page','menu-item-object-id'=>$contact_id,'menu-item-type'=>'post_type','menu-item-status'=>'publish']);
    $locations = get_theme_mod('nav_menu_locations');
    $locations['primary'] = $menu_id;
    set_theme_mod('nav_menu_locations', $locations);
  }
});
表单与处理:
// 短代码:线索表单
add_shortcode('mb_lead_form', function () {
  $action = esc_url(admin_url('admin-post.php'));
  $nonce  = wp_nonce_field('mb_lead_submit','mb_lead_nonce', true, false);
  $hp     = '<input type="text" name="company" value="" style="position:absolute;left:-9999px" tabindex="-1" autocomplete="off">'; // honeypot
  $redirect = esc_url(add_query_arg('submitted','1', wp_get_referer() ?: home_url('/contact')));
  $html = <<<HTML
  <form method="post" action="{$action}" class="mb-lead-form" novalidate>
    {$nonce}{$hp}
    <input type="hidden" name="action" value="mb_lead_submit">
    <input type="hidden" name="redirect_to" value="{$redirect}">
    <p><label>姓名*<br><input type="text" name="name" required></label></p>
    <p><label>邮箱*<br><input type="email" name="email" required></label></p>
    <p><label>留言<br><textarea name="message" rows="5" placeholder="请简要描述您的需求"></textarea></label></p>
    <p><label><input type="checkbox" name="consent" value="1" required> 我同意隐私政策</label></p>
    <p><button type="submit">提交</button></p>
  </form>
HTML;
  return $html;
});
// 处理提交(登录/未登录)
add_action('admin_post_nopriv_mb_lead_submit', 'mb_handle_lead_submit');
add_action('admin_post_mb_lead_submit', 'mb_handle_lead_submit');
function mb_handle_lead_submit() {
  if (!isset($_POST['mb_lead_nonce']) || !wp_verify_nonce($_POST['mb_lead_nonce'], 'mb_lead_submit')) wp_die('Invalid request');
  if (!empty($_POST['company'])) wp_die('Spam detected');
  $ip = $_SERVER['REMOTE_ADDR'] ?? '0.0.0.0';
  $key = 'mb_lead_rate_' . md5($ip);
  if (get_transient($key)) wp_die('Too many requests, try later.');
  set_transient($key, 1, 30); // 30秒限流
  $name = sanitize_text_field($_POST['name'] ?? '');
  $email = sanitize_email($_POST['email'] ?? '');
  $message = wp_kses_post($_POST['message'] ?? '');
  $consent = isset($_POST['consent']) ? 1 : 0;
  if (!$name || !$email || !$consent) wp_die('Required fields missing.');
  $post_id = wp_insert_post([
    'post_type' => 'lead',
    'post_status' => 'publish',
    'post_title' => $name . ' - ' . current_time('mysql'),
    'post_content' => $message,
    'meta_input' => ['email' => $email, 'ip' => $ip, 'consent' => $consent]
  ]);
  if ($post_id && !is_wp_error($post_id)) {
    wp_mail(get_option('admin_email'), '新线索提交', "姓名: {$name}\n邮箱: {$email}\nIP: {$ip}\n\n{$message}");
  }
  $redirect = esc_url_raw($_POST['redirect_to'] ?? home_url('/contact'));
  wp_safe_redirect($redirect);
  exit;
}
输出SEO与JSON-LD:
// 基础SEO头部
add_action('wp_head', function () {
  global $post, $wp;
  $title = wp_get_document_title();
  $desc  = is_singular() && has_excerpt() ? esc_attr(wp_strip_all_tags(get_the_excerpt())) : esc_attr(get_bloginfo('description'));
  $url   = (is_singular() && $post) ? get_permalink($post) : home_url(add_query_arg([], $wp->request ?? ''));
  $site  = get_bloginfo('name');
  $img   = (is_singular() && has_post_thumbnail()) ? get_the_post_thumbnail_url(null, 'large') : '';
  echo "\n<meta name=\"description\" content=\"{$desc}\">";
  echo "\n<link rel=\"canonical\" href=\"".esc_url($url)."\">";
  echo "\n<meta property=\"og:site_name\" content=\"{$site}\">";
  echo "\n<meta property=\"og:title\" content=\"{$title}\">";
  echo "\n<meta property=\"og:description\" content=\"{$desc}\">";
  echo "\n<meta property=\"og:url\" content=\"".esc_url($url)."\">";
  echo "\n<meta property=\"og:type\" content=\"".(is_singular()?'article':'website')."\">";
  if ($img) echo "\n<meta property=\"og:image\" content=\"".esc_url($img)."\">";
  echo "\n<meta name=\"twitter:card\" content=\"summary_large_image\">";
}, 5);
// JSON-LD(面包屑)
add_action('wp_head', function () {
  if (is_front_page()) return;
  $items = [];
  $pos = 1; $items[] = ['@type'=>'ListItem','position'=>$pos++,'name'=>get_bloginfo('name'),'item'=>home_url('/')];
  if (is_singular('product')) {
    $items[] = ['@type'=>'ListItem','position'=>$pos++,'name'=>'产品','item'=>get_post_type_archive_link('product')];
  }
  if (is_singular()) {
    $items[] = ['@type'=>'ListItem','position'=>$pos++,'name'=>get_the_title(),'item'=>get_permalink()];
  } elseif (is_post_type_archive('product')) {
    $items[] = ['@type'=>'ListItem','position'=>$pos++,'name'=>'产品','item'=>get_post_type_archive_link('product')];
  }
  if (count($items) < 2) return;
  $data = ['@context'=>'https://schema.org','@type'=>'BreadcrumbList','itemListElement'=>$items];
  echo '<script type="application/ld+json">'.wp_json_encode($data).'</script>';
}, 6);
// JSON-LD(首页Organization、产品详情Product、联系页ContactPage)
add_action('wp_head', function () {
  if (is_front_page()) {
    $org = [
      '@context'=>'https://schema.org','@type'=>'Organization',
      'name'=>get_bloginfo('name'),'url'=>home_url('/'),
      'logo'=>get_site_icon_url() ?: ''
    ];
    echo '<script type="application/ld+json">'.wp_json_encode($org).'</script>';
  }
  if (is_singular('product')) {
    $img = has_post_thumbnail() ? get_the_post_thumbnail_url(null,'large') : '';
    $prod = [
      '@context'=>'https://schema.org','@type'=>'Product',
      'name'=>get_the_title(),'description'=>wp_strip_all_tags(get_the_excerpt() ?: get_the_content()),
      'image'=>$img ? [$img] : []
    ];
    echo '<script type="application/ld+json">'.wp_json_encode($prod).'</script>';
  }
  if (is_page() && get_page_template_slug() === '' && is_page('contact')) {
    $cp = ['@context'=>'https://schema.org','@type'=>'ContactPage','name'=>'联系','url'=>get_permalink()];
    echo '<script type="application/ld+json">'.wp_json_encode($cp).'</script>';
  }
}, 7);
// 站点地图包含/排除
add_filter('wp_sitemaps_post_types', function ($post_types) {
  unset($post_types['lead']); // 不索引线索
  return $post_types;
});
模块开关与CPT注册(精简示例):
// 设置页
add_action('admin_menu', function () {
  add_options_page('Site Modules','Site Modules','manage_options','mb-modules','mb_modules_page');
});
function mb_modules_page() {
  if (isset($_POST['mb_modules_nonce']) && wp_verify_nonce($_POST['mb_modules_nonce'],'mb_modules')) {
    update_option('mb_modules', [
      'job' => isset($_POST['job']) ? 1 : 0,
      'news'=> isset($_POST['news']) ? 1 : 0
    ]);
    echo '<div class="updated"><p>已保存</p></div>';
  }
  $opt = wp_parse_args(get_option('mb_modules',[]), ['job'=>0,'news'=>0]);
  echo '<div class="wrap"><h1>Site Modules</h1><form method="post">';
  wp_nonce_field('mb_modules','mb_modules_nonce');
  echo '<p><label><input type="checkbox" name="job" '.checked(1,$opt['job'],false).'> 启用招聘</label></p>';
  echo '<p><label><input type="checkbox" name="news" '.checked(1,$opt['news'],false).'> 启用新闻</label></p>';
  submit_button();
  echo '</form></div>';
}
// 注册CPT(根据开关)
add_action('init', function () {
  $opt = wp_parse_args(get_option('mb_modules',[]), ['job'=>0,'news'=>0]);
  if ($opt['job']) {
    register_post_type('job', [
      'label'=>'招聘','public'=>true,'show_in_rest'=>true,'has_archive'=>true,
      'rewrite'=>['slug'=>'jobs'],'supports'=>['title','editor','custom-fields']
    ]);
  }
  if ($opt['news']) {
    register_post_type('news', [
      'label'=>'新闻','public'=>true,'show_in_rest'=>true,'has_archive'=>true,
      'rewrite'=>['slug'=>'news'],'supports'=>['title','editor','thumbnail','excerpt','custom-fields']
    ]);
  }
});
可在保存模块设置后,按需自动创建“招聘/新闻”页面与菜单项(复用前述 ensure_page 逻辑)。
本任务说明覆盖从主题结构、自动化页面生成、CPT设计、线索表单、安全与SEO到性能优化与验收的全流程方案,可直接用于开发与上线执行。
<?php
// 主题能力与WooCommerce支持
add_action('after_setup_theme', function () {
    add_theme_support('title-tag');
    add_theme_support('post-thumbnails');
    add_theme_support('woocommerce');
    add_theme_support('html5', ['style', 'script', 'gallery', 'caption']);
    add_theme_support('responsive-embeds');
    add_image_size('product-card', 640, 640, true);
    add_image_size('product-hero', 1200, 800, true);
});
// 资源加载(移动优先,去除冗余)
add_action('wp_enqueue_scripts', function () {
    wp_enqueue_style('theme', get_stylesheet_directory_uri() . '/assets/css/app.css', [], '1.0.0', 'all');
    wp_enqueue_script('theme', get_stylesheet_directory_uri() . '/assets/js/app.js', [], '1.0.0', true);
}, 20);
// 预连接关键第三方与CDN
add_filter('wp_resource_hints', function ($urls, $relation_type) {
    if ('preconnect' === $relation_type) {
        $urls[] = 'https://js.stripe.com';
        $urls[] = 'https://www.paypal.com';
        $urls[] = 'https://cdn.example.com'; // 替换为你的CDN域名
    }
    return $urls;
}, 10, 2);
// 图片策略:Hero图提升优先级,其他延迟加载
add_filter('wp_get_attachment_image_attributes', function ($attr, $attachment, $size) {
    if (!empty($attr['class']) && strpos($attr['class'], 'hero-image') !== false) {
        $attr['loading'] = 'eager';
        $attr['fetchpriority'] = 'high';
        $attr['decoding'] = 'async';
    } else {
        $attr['loading'] = $attr['loading'] ?? 'lazy';
        $attr['decoding'] = 'async';
    }
    return $attr;
}, 10, 3);
// 清理Emoji/Embeds等冗余
add_action('init', function () {
    remove_action('wp_head', 'print_emoji_detection_script', 7);
    remove_action('wp_print_styles', 'print_emoji_styles');
    remove_action('wp_head', 'wp_oembed_add_discovery_links');
    remove_action('wp_head', 'wp_oembed_add_host_js');
});
// WooCommerce片段脚本在非结账页禁用,减少JS
add_action('wp_enqueue_scripts', function () {
    if (!is_cart() && !is_checkout()) {
        wp_dequeue_script('wc-cart-fragments');
    }
}, 100);
// 移动端固定CTA(产品页/购物车页)
add_action('wp_footer', function () {
    if ((is_product() || is_cart())) : ?>
        <div class="sticky-cta" role="region" aria-label="快速下单">
            <a href="<?php echo esc_url(wc_get_checkout_url()); ?>" class="button cta">立即下单</a>
        </div>
        <style>
            .sticky-cta {position: fixed; left: 0; right: 0; bottom: 0; background: #111; padding: 12px; z-index: 999;}
            .sticky-cta .cta {display: block; text-align: center; background: #ff2d55; color: #fff; font-weight: 600; border-radius: 10px; padding: 14px; font-size: 16px;}
            @media (min-width: 992px){ .sticky-cta{ display:none; } }
        </style>
    <?php endif;
});
<?php defined('ABSPATH') || exit; global $product; if (empty($product) || !$product->is_visible()) return; ?>
<li <?php wc_product_class('product-card'); ?>>
    <a href="<?php the_permalink(); ?>" class="card-media" aria-label="<?php the_title_attribute(); ?>">
        <?php
        $img_id = get_post_thumbnail_id();
        echo wp_get_attachment_image($img_id, 'product-card', false, [
            'class' => 'card-img',
            'loading' => 'lazy',
            'decoding' => 'async'
        ]);
        ?>
    </a>
    <div class="card-body">
        <h3 class="card-title"><?php the_title(); ?></h3>
        <?php woocommerce_template_loop_price(); ?>
        <?php woocommerce_template_loop_add_to_cart(['class' => 'button primary cta']); ?>
    </div>
</li>
/* assets/css/app.css */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }
.product-card { list-style: none; background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.card-media { display: block; aspect-ratio: 1 / 1; background: #f7f7f7; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px; }
.card-title { font-size: 14px; line-height: 1.4; margin: 0 0 6px; min-height: 2.8em; }
.price { font-weight: 700; color: #111; margin-bottom: 8px; }
.button.primary.cta { display: block; width: 100%; background: #111; color: #fff; padding: 12px; text-align: center; border-radius: 10px; font-weight: 600; }
.button.primary.cta:active { transform: scale(0.98); }
@media (hover: hover) {
  .product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); transform: translateY(-1px); transition: .2s; }
}
<?php
function promo_countdown_shortcode($atts) {
    $a = shortcode_atts([
        'end' => '2025-12-31T23:59:59+08:00',
        'label' => '限时优惠'
    ], $atts);
    $id = 'cd_' . wp_generate_uuid4();
    ob_start(); ?>
    <div id="<?php echo esc_attr($id); ?>" class="promo-countdown" data-end="<?php echo esc_attr($a['end']); ?>" aria-live="polite">
        <span class="label"><?php echo esc_html($a['label']); ?></span>
        <span class="time">
            <b class="d">00</b>d <b class="h">00</b>h <b class="m">00</b>m <b class="s">00</b>s
        </span>
    </div>
    <script>
    (function(){
      var el = document.getElementById('<?php echo esc_js($id); ?>'); if(!el) return;
      var end = new Date(el.dataset.end).getTime();
      function pad(n){return n<10?'0'+n:n}
      function tick(){
        var diff = Math.max(0, end - Date.now());
        var d = Math.floor(diff/86400000);
        var h = Math.floor(diff%86400000/3600000);
        var m = Math.floor(diff%3600000/60000);
        var s = Math.floor(diff%60000/1000);
        el.querySelector('.d').textContent = pad(d);
        el.querySelector('.h').textContent = pad(h);
        el.querySelector('.m').textContent = pad(m);
        el.querySelector('.s').textContent = pad(s);
        if (diff <= 0) { clearInterval(timer); el.classList.add('ended'); }
      }
      tick(); var timer = setInterval(tick, 1000);
    })();
    </script>
    <?php return ob_get_clean();
}
add_action('init', function(){ add_shortcode('promo_countdown', 'promo_countdown_shortcode'); });
<?php
add_action('init', function () {
    if (function_exists('register_block_pattern')) {
        register_block_pattern('promo/landing-minimal', [
            'title' => '极简促销落地页',
            'content' => '
                <!-- wp:cover {"url":"https://cdn.example.com/hero.jpg","dimRatio":60,"minHeight":60,"isDark":false} -->
                <div class="wp-block-cover"><span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span>
                    <img class="wp-block-cover__image-background hero-image" alt="" src="https://cdn.example.com/hero.jpg" data-object-fit="cover"/>
                    <div class="wp-block-cover__inner-container">
                        <!-- wp:heading {"textAlign":"center","level":1} --> <h1 class="has-text-align-center">限时优惠</h1> <!-- /wp:heading -->
                        <!-- wp:paragraph {"align":"center"} --> <p class="has-text-align-center">现在下单,立享折扣</p> <!-- /wp:paragraph -->
                        <!-- wp:shortcode -->[promo_countdown end="2025-11-11T23:59:59+08:00"]<!-- /wp:shortcode -->
                        <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
                        <div class="wp-block-buttons"><div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="/shop">立即购买</a></div></div>
                        <!-- /wp:buttons -->
                    </div>
                </div>
                <!-- /wp:cover -->
            ',
        ]);
    }
});
add_action('wp_head', function(){
    echo '<link rel="preload" href="'.esc_url(get_stylesheet_directory_uri().'/assets/fonts/Inter.woff2').'" as="font" type="font/woff2" crossorigin>';
}, 1);
# 压缩
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/json image/svg+xml
</IfModule>
# 浏览器缓存
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/webp "access plus 6 months"
  ExpiresByType image/jpeg "access plus 6 months"
  ExpiresByType image/png  "access plus 6 months"
  ExpiresByType text/css   "access plus 7 days"
  ExpiresByType application/javascript "access plus 7 days"
  ExpiresDefault "access plus 1 day"
</IfModule>
# WebP优先(存在即用)
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_ACCEPT} image/webp
  RewriteCond %{REQUEST_FILENAME} (.+)\.(jpe?g|png)$
  RewriteCond %{DOCUMENT_ROOT}/%1.webp -f
  RewriteRule (.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1]
</IfModule>
AddType image/webp .webp
define('WP_CACHE', true);
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
以上方案覆盖从主题与UI落地、业务功能实现到性能与稳定性的全链路,面向移动端转化优化与核心Web指标达标,提供可直接应用的代码片段与配置参考。
两周内上线品牌官网,自动生成首页、产品与联系页面;同步完成SEO基础设置与线索表单,后续一键添加招聘、新闻等模块。
快速搭建商品目录、购物车与订单提醒;无缝接入常见支付插件;生成促销落地页与倒计时组件,优化移动端下单流程。
选定统一风格的主题结构,自动配置分类、标签与推荐区域;提供写作与排版建议,开启图片压缩与延迟加载,提升阅读体验。
用一条指令,召唤“WordPress网站开发专家”,把你的设计偏好、功能诉求与性能目标即时转化为可落地的站点方案与代码。面向企业官网、电商商城与内容博客等高频场景,自动输出清晰的需求清单、分步实施路径、可复制的代码与配置建议、性能与安全优化要点以及上线核对表。通过多轮迭代打磨与风险提示,显著缩短交付周期、减少沟通成本、避免常见坑点,让非技术角色也能快速推进项目,专业开发者则可高效完成定制与优化,最终提升网站质量与业务转化。
将模板生成的提示词复制粘贴到您常用的 Chat 应用(如 ChatGPT、Claude 等),即可直接对话使用,无需额外开发。适合个人快速体验和轻量使用场景。
把提示词模板转化为 API,您的程序可任意修改模板参数,通过接口直接调用,轻松实现自动化与批量处理。适合开发者集成与业务系统嵌入。
在 MCP client 中配置对应的 server 地址,让您的 AI 应用自动调用提示词模板。适合高级用户和团队协作,让提示词在不同 AI 工具间无缝衔接。
免费获取高级提示词-优惠即将到期