Try something like this:
if ( !function_exists('get_field') && $_REQUEST['action'] != 'activate' )
This will prevent your function being defined for the run where a plugin is actually being activated.
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- Disable plugin / plugin action via theme
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- Shared functionality in plugins and themes
- Need to create a Theme demo site that features multiple themes
- Declare a function before plugin does on the theme functions.php file
- Editor access to plugin settings
- Override the core function locate_template
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- All sites themes functions.php have been changed
- Overwrite category head title
- Proper way to use plugin functions in functions.php
- Need to replace Currency Shortforms
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- How to add custom function to pluggable.php
- Removing the custom_image_header from wp_head
- What is the most efficient way of adding additional functionaliy for admin only
- RSS feeds for specific topics
- Hide Plugin Custom Post Type Menu Link
- Securing langugae folder
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- How to Call Function From Separate WordPress Install on Same Server?
- Can’t get custom user meta to show in header
- overwrite a plugin function in functions.php
- Where can I sell WordPress themes and plugins? [closed]
- Why does including a file in theme’s functions.php not work?
- disable active plugins for specific theme
- Should I use RIPS tool to test my themes and plugins?
- Add Top-Level Menu that opens URL
- Make the css of the widget overwrite theme css
- A way to sort WordPress themes? [closed]
- WordPress ajax call for not logged in users, doesn’t work
- Display All Non-Used Plugins
- Making menu link open in new tab?
- Add get_option to jquery
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- How to add class in plugin only for network site?
- How to Know if a Plugin can be used with my Theme [closed]
- PHP Fatal error: Call to undefined function plugin_basename
- Call to undefined function get_userdata in user.php
- Only Homepage not loading properly
- Using custom JS plugins with WordPress?
- Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Admin Theme customization
- Using a function to change favorites listing
- (FES EDD) New vendor submission page is blank
- WP Query. Is there a maximum size?
- Display Custom Field Value on Admin Page Column
- List the authors that have written posts in a category
- How to get plugin name from plugin file location
- How to check if my wordpress websiste is nulled or not?
- Theme Custom Pages
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- How to find the list of custom post type where logged in user is author
- add_query_arg not work in admin
- Api external with wordpress
- Hook for altering the content of all wp mails
- How to override this theme function in child theme
- How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]
- Sharing functions between plugins
- Is it possible for a plugin to prevent certain plugins from being installed?
- Can’t load the the canges of field groups [duplicate]
- implement custom roles in custom plugin
- How to get current cart values using WC_Shortcodes?
- How to copy the all WordPress media items to another custom plugin folder?
- Link custom post type to page
- how can export data in excel file custom plugin
- Showing different js file for different theme in wordpress customizer api
- Seeking specific WordPress Layout
- WP_CRON issue with UTC and local time
- How to wrap image tag into div for post only?
- Update User Meta Via Ajax
- Unexpected plugin_dir_path Output
- WordPress Theme/Plugin Install (about FTP Connection)
- WordPress core update fails – no issues with plugin updates
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- how to create table during plugin installation in side a class
- Incentive theme – Getting ’You do not have sufficient permissions’ while trying to install plugins
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- How to use scripts when header/footer are stripped out
- How to add a handler for a button in plugin?
- Issues with Post 2 Post Plugin
- Call current post parameters inside a plugin
- How to list posts that appear in two categories
- How to get current template file used by WordPress?
- Adminimize Plugin — Is there an alternative to limiting Editor to ‘Appearance > Widgets’ only?
- Terms id wordpress error
- Woocommerce – Product Description heading [closed]
- How to make wordpress backend mobile optimized.?
- Woocommerce disable checkout on specific day
- What is phpBB? Is it something like a plugin which I can use in WordPress? [closed]
- Gravity Forms and Gravity View Permissions
- Run a function only once when logging into dashboard
- Newspaper theme, custom query vars, & custom rewrite rules
- How to call a logging function from a generic utility plugin from another plguin