[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

oik_plugin_plugin_inactive() – Display a message when setup is not fully functional due to the dependencies not being activated or installed Note: We can’t use oik APIs here as we don’t know if it’s activated.

You appear to be a bot. Output may be restricted

Description

Display a message when setup is not fully functional due to the dependencies not being activated or installed Note: We can't use oik APIs here as we don't know if it's activated.

If the message is issued due to a version mismatch then there is a chance that one plugin attempts to use functions that are not available in the dependent plugin. How do we manage this?

Usage

oik_plugin_plugin_inactive( $plugin, $dependencies, $problem );

Parameters

$plugin
( mixed ) optional –
$dependencies
( mixed ) optional –
$problem
( mixed ) optional –

Returns

void

Source

File name: oik-nivo-slider/admin/oik-activation.php
Lines:
1 to 29 of 29
function oik_plugin_plugin_inactive( $plugin=null, $dependencies=null, $problem=null ) {
  $plugin_name = basename( $plugin, ".php" );
  $dependencies = str_replace( ":", ' ' . __("version", null) . ' ' , $dependencies );
  $text = "<p><b>";

  $text .= sprintf( __( '%1$s may not be fully functional.', null), $plugin_name );
  $text .= "</b> ";
    /* translators: %s: plugin dependencies */
  $text .= sprintf( __( 'Please install and activate the required minimum version of this plugin: %1$s', null ), $dependencies );
  $text .= "</p>";
  
  if ( current_filter() == "admin_notices" ) {
    $message = '<div class=" updated fade">';
    $message .= $text;
    $depends = strtok( $dependencies, " " );
    $message .= oik_plugin_oik_install_link( $depends, $problem );
    $message .= '</div>'; 
    
  } else {
    $message = '<tr class="plugin-update-tr">';
    $message .= '<td colspan="3" class="plugin-update colspanchange">';
    $message .= '<div class="update-message">';
    $message .= $text;
    $message .= "</div>";
    $message .= "</td>";
    $message .= "</tr>";
  }
  echo $message; 
}
 
 View on GitHub View on Trac

Published: November 15, 2017 | Last updated: December 18, 2017

Information

Function name: oik_plugin_plugin_inactive
Plugin ref: oik-nivo-slider – jQuery nivo slider
Version: 1.16.2
Sourcefile: admin/oik-activation.php
File ref: admin/oik-activation.php
Deprecated?: No
API Letters: I,O,P

Recent plugin updates

oik-weight-zone-shipping v0.2.6 oik-weight-zone-shipping v0.2.6 has been tested with WooCommerce 7.4.0. ...
sb-chart-block v1.2.3 SB Chart Block v1.2.3 contains a fix for an Uncaught Error: Call to undefined function bw_trace2()  ...
SB Chart Block v1.2.1 Update to SB Chart Block v1.2.0 for custom colors, font size options and multiple y-axis charts.  ...
oik-css v2.1.0 Update to oik-css v2.1.0 for the ability to style CSS and GeSHi output in documentation. ...
oik-types v2.3.0 Update to oik-types v2.3.0 for improved control over sort order on archives ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: herb@bobbingwide.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2023. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 6.2. PHP: 7.4.33. Memory limit: 768M