{"id":17846167,"date":"2024-06-24T11:14:50","date_gmt":"2024-06-24T11:14:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-function-when-activate-plugin\/"},"modified":"2024-06-24T11:14:50","modified_gmt":"2024-06-24T11:14:50","slug":"undefined-function-when-activate-plugin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-function-when-activate-plugin\/","title":{"rendered":"Undefined function when activate plugin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have tested in my environment with the following specifications:<\/p>\n\n\n\n<ul>\n<li>WordPress version 5.4.15<\/li>\n\n\n\n<li>Current plugin: FireBox (version 2.1.15)<\/li>\n\n\n\n<li>PHP version 7.4.33<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">However, an error occurred: <code>Call to undefined function FPFramework\\Base\\register_block_type_from_metadata()<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is because the <code>register_block_type_from_metadata()<\/code> function was introduced in WordPress version 5.5.0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I hope the author can set the minimum supported WordPress version to 5.5.0 to avoid confusion.<\/p>\n","protected":false},"template":"","class_list":["post-17846167","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17846167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17846167\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17846167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}