You appear to be a bot. Output may be restricted
Description
Display privacy policy inactive message
Display a message when oik-privacy-policy 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_privacy_policy_inactive( $plugin, $dependencies );
Parameters
- $plugin
- ( string ) optional –
- $dependencies
- ( string ) optional –
Returns
void
Source
File name: oik-privacy-policy/admin/oik-privacy-policy.php
Lines:
1 to 21 of 21
function oik_privacy_policy_inactive( $plugin=null, $dependencies=null ) { $dependencies = str_replace( ":", " version ", $dependencies ); $text = "<p><b>oik-privacy-policy may not be fully functional</b>. It is dependent upon the <b>oik</b> plugin. "; $text.= "Please install and activate the required version of this plugin: $dependencies</p>"; if ( current_filter() == "admin_notices" ) { $message = '<div class=" updated fade">'; $message .= $text; $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; }