Commit b90cf8dd authored by Kenny Hall's avatar Kenny Hall

Set up basic structure for Whip notices.

parent 01acc288
<?php if ( ! defined( 'ABSPATH' ) ) exit;
class NF_Whip
{
public function __construct()
{
add_action( 'admin_notices', array( $this, 'whip_message' ) );
}
public function whip_message()
{
$message = '';
}
}
\ No newline at end of file
......@@ -367,6 +367,10 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
add_action( 'init', array( self::$instance, 'init' ), 5 );
add_action( 'admin_init', array( self::$instance, 'admin_init' ), 5 );
if( PHP_VERSION < 7.0 ) {
add_action( 'admin_init', array( self::$instance, 'nf_whip_notice' ) );
}
return self::$instance;
}
......@@ -385,6 +389,12 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
add_filter( 'ninja_forms_dashboard_menu_items', array( $this, 'maybe_hide_dashboard_items' ) );
}
public function nf_whip_notice()
{
require_once self::$dir . '/includes/Libraries/Whip/NF_Whip.php';
return new NF_Whip();
}
public function maybe_hide_dashboard_items( $items )
{
$disable_marketing = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment