A plugin is a PHP include in its most elementary sense. You cannot call a function if it’s not registered in PHP. If a plugin is not activated, it is therefore not included, and the function is unknown. You cannot call it. I would recommend that you use this as a must-use plugin so that it’s availability is consistent and predictable.
Related Posts:
- Plugin won’t activate, fatal error (widget class not found)
- Should all plugins be encapsulated in a Class?
- Activate a plugin through PHPMyAdmin or FTP?
- Registering Class methods as hook callbacks
- Get plugin_dir_url() from one level deep within plugin
- How to use classes declared in another plugin?
- Namespaces in WordPress – How do I initiate the main class?
- How do I extend one plugin I’m writing with another I’m writing using classes?
- Adding an admin page – OOP approach not working
- scheduled event not getting executed
- WordPress plugin installation error
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- Using the media uploader in a custom plugin
- Trying to get logged-in user data inside php class
- register child class in another plugin
- Check if a class exists within a method
- How to include and use custom class files in plugin?
- Can’t access my WP dashboard: fatal error? [closed]
- Creating a menu page in a Object Oriented developed plugin
- Using plugin functionality in external php script not working
- Multiple files in a plugin
- Current user in plugin returns NULL
- How to structure a plugin into multiple files using classes?
- Can I delete plugin files using FTP?
- Override WP Class Private Function
- Calling custom plugin class methods from a template
- Getting user roles in plugin files
- Plugin activation hook in an abstract class
- Elementor\Scheme_Typography’ not found [closed]
- plugin class inheritance. cannot change variable
- WordPress Blank Screen Issue [closed]
- Most efficient way to use classes to create admin pages using Settings API
- Basic Object Oriented plugin question
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Why “Call to a member function on a non-object” in plugin only?
- Using plugin functions/methods within templates
- How to handle cookies from a WordPress plugin on a cached page?
- accessing parent variables in child construct without executing action in parent
- Fatal error can’t activate a plugin [closed]
- Object method calling for global $wpdb in header.php
- Cannot access my wp-admin after installing Gzip compression [closed]
- Why is my custom post type not being activated on plug-in activation?
- Invalid plugin installation directory, Google Analytics [closed]
- Fatal error on some pages after cancelling WPSTAGING cloning process
- There has been a critical error on your website – won’t fix no matter what
- get_option / wp_localize_script Not Working in OOP Plug In
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Built a second plugin but it overwrote the first one
- Error with get_price (and others) in self-written plugin to show price
- profile_update hook doesn’t works inside a class
- WordPress Object Oriented plugin development [closed]
- How to access OOP plugin function inside themes or other plugin
- Plugin: Hooking up classes that have their own hooks
- After a manual update, themes and plugins that were installed (and still in the directory) are not being seen
- Manualy Updated WordPress Error
- WordPress Custom Hook with Class method
- Replace old theme that understand old css (vcex_icon_box css_animation)
- FPDF for creating pdf diplomas
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- WordPress plugin blog creation
- Fatal error: Class ‘RDTheme’ not found
- Woocommerce functions in custom class, avoid errors
- Get post content inside plugin class method
- How to access classes in theme of a plugin?
- Making a Custom Post Type Plugin – keep getting the white screen of death
- Reorganization of namespaces
- accessibility of an object created in a plugin, from the header
- Call to a member function get_error_messages() on null [closed]
- Creating a register settings class that supports extended classes
- Autoloading a PHP class – working outside, but not inside WordPress plugin
- Fatal error when accessing Pages in WP admin (and problems editing any pages)
- Why function hooked using object are executing at all time?
- Plugin Breaking WordPress Login
- Fatal error with jigoshop and woocommerce
- How do add_action and WP_Query
- private functions in plugins
- OOP Plugin: Where should I place the action hooks in the class?
- How to fix ‘Call to undefined function do_settings()’ error?
- Global Handle to Class unavailable in Plugin?
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- White Screen When Includding A Folder With PHP Files
- Strict Standards: Non-static method in sidebar generator
- Plugin: Custom menu item problem
- FATAL ERROR: WP complains about redeclaration [closed]
- Unable to access WPadmin, website down
- WP Elementor Pro causing crtical failure on website
- fatal erro in one line if statment in wordpress plugin [Solved]
- Function not being called on form submit, only blank admin-post.php page
- How to fix Fatal error: Cannot redeclare get_cli_args() in class-wp-importer.php
- How do I retrieve a list of popular plugins using the WordPress.org Plugin API?
- ACF for audio url in wordpress audio shortcode
- Built in admin ajax hooks?
- Could someone please help me to add category id with in this query so this will return posts from a certain category?
- Adding a section to admin menu for global settings
- plugin development: problem with functions
- View Private Published Page with URL Code (no login required)
- $wpdb->get_row returns column name instead of column value
- WordPress premium theme development [duplicate]
- Gutenberg default attributes are empty when accessing in edit
- Woocommerce custom fields