[Plugin: Music Affiliate Pro] Adding iTunes Album to Custom Field
-
I’m attempting to add an option to auto-magically dump the itunes # into a custom field, (that I previously added outside my content.), within admin/meta-box-tune-search.php, beneath the code:
$result->actions[] = '<a href="#'. $item->collectionId .'" class="add-itunes-widget">Add Widget</a>';
I added another item (just copied & modified from the one above),
$result->actions[] = '<a href="#'. $item->collectionId .'" class="field_code">Add Field</a>';
then attempted to add my php meta code:
add_post_meta(get_the_ID(), 'itunes_id', $item)
to the search.js file:.delegate('a.field-code', 'click', function(e) { e.preventDefault(); var itemId = $(this).attr('href').replace('#', ''); tuneEditor.add_post_meta(the_ID(),'itunes_id', itemId, false);
As I analyse my careless unsuccessful hacks, thoughts on a more useful approach?
https://www.ads-software.com/extend/plugins/music-affiliate-pro/
- The topic ‘[Plugin: Music Affiliate Pro] Adding iTunes Album to Custom Field’ is closed to new replies.