• WP-AutoPostPro 汉化版: WordPress自动采集发布插件 WordPress文章采集



    一、详细介绍

    WP-AutoPostPro 是目前最好用的WordPress自动采集发布插件,最大的特点是可以采集来自于任何网站的内容并自动发布到你的WordPress站点。真正做到可以采集任何网站的内容并自动发布,采集过程完全自动进行无需人工干预,并提供内容过滤、HTML标签过滤、关键词替换、自动链接、自动标签、自动下载远程图片到本地服务器、自动添加文章前缀后缀、并且可以使用微软翻译引擎将采集的文章自动翻译为各种语言进行发布。

    规则教程网上有一堆,很简单,也不需要付费,比付费包月插件好太多了

    二、效果展示

    1.部分代码

    代码如下(示例):

    function pro_update_cron_url()
    {
        if ($_REQUEST["update_autopost"] == 1) {
            ap_pro_checkupdate(1);
            exit;
        }
    }
    function pro_update_after_page_load()
    {
        ap_pro_checkupdate(0);
    }
    if (get_option("wp_autopost_updateMethod") == 1)
        add_action("init", "pro_update_cron_url");
    else
        add_action("shutdown", "pro_update_after_page_load");
    function ap_pro_checkupdate($print = 1)
    {
        global $wpdb, $t_ap_config;
        if ($wpdb->get_var("SHOW TABLES LIKE '$t_ap_config'") != $t_ap_config)
            return;
        $tasks = $wpdb->get_results("SELECT id,last_update_time,update_interval,is_running FROM " . $t_ap_config . " WHERE activation=1 ORDER BY id");
        $i    = 0;
        foreach ($tasks as $task) {
            if (($task->is_running) == 1 && current_time("timestamp") > (($task->last_update_time) + (60) * 15)) {
                $wpdb->query("update " . $t_ap_config . " set is_running = 0 where id=" . $task->id);
            }
            if (current_time("timestamp") > (($task->last_update_time) + ($task->update_interval) * 60) && ($task->is_running) == 0) {
                $canUpdate                                   = true;
                $ids[$i++] = $task->id;
                $wpdb->query("update " . $t_ap_config . " set last_update_time = " . current_time("timestamp") . " where id=" . $task->id);
            }
        }
        $isTaskRunning = $wpdb->get_var("select max(is_running) from " . $t_ap_config . " where activation = 1");
        if ($isTaskRunning == null || $isTaskRunning == 0) {
            update_option("wp_autopost_runOnlyOneTaskIsRunning", 0);
        }
        if ($canUpdate) {
            ignore_user_abort(true);
            set_time_limit((int) get_option("wp_autopost_timeLimit"));
            foreach ($ids as $id) {
                fetch($id, $print, 0);
                if ($print) {
                    ob_flush();
                    flush();
                }
            }
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48

    2.效果图展示

    请添加图片描述


    三、学习资料下载

    蓝奏云:https://qumaw.lanzoul.com/iB4J21vjy3qf

  • 相关阅读:
    英特尔12代酷睿架构,十二代酷睿架构
    Centos、OpenEuler系统安装mysql
    汽车电子技术栈
    【云原生Kubernetes】部署K8S集群架构(admin部署)
    MyBatis
    你知道网关 架构是如何演进?
    java计算机毕业设计汽车美容管理源码+mysql数据库+系统+lw文档+部署
    java计算机毕业设计基于springboot 房屋租赁出租系统
    【LeetCode: 1462. 课程表 IV:拓扑排序+图+广度优先搜索】
    北大学者发现,经常喝牛奶,增加中国人肝癌和乳腺癌风险
  • 原文地址:https://blog.csdn.net/m0_65030252/article/details/137914978