• I’m trying to move my custom taxonomies into a custom plug-in, something went wrong with a critical error, this is my code inside the custom plug-in file: https://pastebin.com/z0mui8Ay

    I have activated the plug in in my wp dashboard

    the purpose is a faster loading of the right-side taxonomy column in my edit post page, and also having less confusion in my functions.php, since I have a lot of taxonomies

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    What’s the critical error? If there is a PHP error in your plugin, you wouldn’t have been able to activate it. The code looks OK to me. If you’ve copied the plugin code from elsewhere, such as functions.php, maybe the name “cptui_register_my_taxes13” is already used? If so, it needs to be renamed.

    I don’t see how moving code to a plugin would help with page speed, but it will help you stay organized. To be further organized, you could keep related parts of your code in different .php files. You can then require_once() the files in you main plugin file (or functions.php for theme code).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.