Skip to content

Instantly share code, notes, and snippets.

<?php
/*
*
* This class handles all the update-related stuff for extensions, including adding a license section to the license tab.
* It accepts two args: Product Name and Version.
*
* @param $product_name string
* @param $version string
* @since 2.2.47
* @return void
$args = array(
'post_type' => 'attachment',
'meta_query' => array(
array(
'key' => 'ninja_forms_field_id',
'value' => $field_id,
'type' => 'numeric',
'compare' => '='
),
array(