[wordpress插件] Ajax Content RendererAjax内容渲染器

wordpress 插件 文章 2020-02-13 13:40 539 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

This plugin detects Ajax requests and returns just the formatted body of the post or page.

此插件检测Ajax请求并仅返回帖子或页面的格式化正文。

安装步骤

Install

安装

    1. Unzip plugin and upload the betancourt-ajax-content directory to your blog’s wp-content/plugins directory.
    2. 解压缩插件,然后将 betancourt-ajax-content 目录上传到博客的 wp-content / plugins 目录。

    3. Activate the plugin through the Plugins menu in WordPress.
    4. 通过WordPress中的插件菜单激活插件。

    5. That’s it.

    6. 就是这样。

      Now you can request a post via Ajax.

      现在,您可以通过Ajax请求帖子。

      The response will be clean HTML containing the text of the post.

    7. 响应将是包含帖子文本的干净HTML。

    Alternatively you can test this quickly using cURL.

    或者,您可以使用cURL对此进行快速测试。

    Try the following from the command line:
        

    从命令行尝试以下操作:
        

    curl http://your.domain.name/your-content-slug/ -H X-Requested-With:XMLHttpRequest

    curl http://your.domain.name/your-content-slug/ -H X-Requested-With:XMLHttpRequest

下载地址

https://downloads.wordpress.org/plugin/ajax-content-renderer.1.3.4.zip

https://downloads.wordpress.org/plugin/ajax-content-renderer.1.3.4.zip

-EOF-

AI助手支持GPT4.0