nf_network_activation_error

Outputs a notice if the user attempts a network activation of the plugin.

Description

nf_network_activation_error(); 

Usage

  1. if ( !function_exists( 'nf_network_activation_error' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/activation.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_network_activation_error(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/activation.php  
  1. function nf_network_activation_error() { 
  2. echo '<div class="error"><p>' . __( 'Ninja Forms cannot be network activated. Please visit each site\'s dashboard to activate the plugin.', 'ninja-forms' ) . '</p></div>'; 
  3. deactivate_plugins( plugin_basename( __FILE__ ), TRUE, TRUE );