: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Get all fields for the instantiated form Id
* Stored as $this->fields for additional use w/o calling DB
protected function getFields() {
if (empty($this->fields)) {
$this->fields = Ninja_Forms()->form($this->formId)->get_fields();
// not needed internally, but available for public/static use
* Convert Unix date stamp to Wordpress post date format
* @param int|null $incoming
protected function formatDate(/* ?int */$incoming = null)/* :string */ {
if (!is_null($incoming)) {
// @TODO: remove integer casting when adding type hinting
$return = date($wpDateFormat, (int) $incoming);
* Set field types to be removed before output
* Provided as indexed array of NF field types
public function setHiddenFieldTypes(array $hidden=null)/*: SubmissionCollectionInterface*/ {
$this->hiddenFieldTypes = $hidden;