Commit 6898a8cd authored by Kenny Hall's avatar Kenny Hall

Added the line requested by KR.

parent 8c372b72
Pipeline #1847 passed with stages
in 1 minute and 58 seconds
......@@ -20,7 +20,13 @@ class NF_PromotionManager
public function get_promotions()
{
return $this->promotions;
if ( apply_filters( 'ninja_forms_disable_marketing', false ) )
{
$this->promotions = array();
return $this->promotions;
} else {
return $this->promotions;
}
}
/**
......
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