وردپرس

JSON import – not respecting group


I am trying to do an import from a programatically generated JSON file, but it is not respecting the group id, it creates a new group called “Group” with the rules.

Example:

{
        "redirects": [
{
        "url": "^/sourceurl",
        "match_url": "^/sourceurl",
        "match_data": {
                "source": {
                        "flag_query": "exact",
                        "flag_case": true,
                        "flag_trailing": true,
                        "flag_regex": true
                }
        },
        "action_code": 301,
        "action_type": "url",
        "action_data": {
                "url": "/destination/"
        },
        "match_type": "url",
        "title": "Generated redirect rule note",
        "regex": true,
        "group_id": 3,
        "enabled": false
}
]
}

پایان/ مرجع وب و فناوری

مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد

منبع: انجمن وردپرس

دکمه بازگشت به بالا