Based on your comments above, you are just passing a wrong id or you need to modify delete_pdf_and_metadata function. intval(‘aps_pdf1’) is 0, and that’s why your response is 0!
Related Posts:
- Arrange custom fields with drag and drop?
- ajax jquery update custom field meta value front end
- How to populate custom field dropdown box based on prior selection?
- How to use media upload on metabox post page without breaking TinyMCE?
- Add forms dynamically in admin pages?
- Get custom fields when hover link of post
- Validating Custom Meta Box Values & Required Fields
- Custom field/meta populated by dropdown of existing posts?
- Individual Widgets per Page
- Gutenberg add a custom metabox to default blocks
- How to add add_meta_box to specific Page Template?
- Custom field metabox not showing in back-end
- Adding another state (spam, reject, approve) to wordpress comments?
- Unable to get Preview of Uploaded image within a Custom Meta box
- extend Meta Box / Document Panel
- Edit Custom Database Tables in WordPress
- How to store the value of a custom field dropdown select for post referencing?
- Add multiple images to a page sidebar
- Custom Meta Boxes: Store two values in one repeatable field
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- Register new user and add custom data row value for it
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- Problem in custom meta boxes
- Update meta values with AJAX
- Multiplile values checkbox or select in custom meta box
- Create custom field key upon theme activation
- Custom fields to save multiple values
- Undefined index error when saving content on metabox
- How to save multiple metaboxes?
- Metabox with multiple fields added by user and upload box
- add meta box using function.php
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- wp_editor removes paragraph from custom meta box
- sort search results by custom fields using dropdown
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Where did the Add New Custom Field go?
- Admin meta Image Path
- Odd PHP Code To Display HTML Of Meta Box [closed]
- Better Method for Multiple Meta Boxes
- how to fetch the meta field keys/meta boxes from a post type?
- How to Create Dynamic Fields in a Meta Box?
- Set front page option using custom fields?
- Can’t get metabox value (a url) returned using WPAlchemy
- How to get Metabox custom field to show checked if value is updated using post meta query?
- Button inside Custom Meta Box triggering the Update Button
- Adding auto-complete to custom gravity field not working
- Using WP_Query to grab custom meta values, foreach to json object
- Custom Metabox additional item
- get_posts in meta box dropdown not showing latest posts
- When creating a metabox do you have to create DB fields for the data?
- Get image url using image id
- Set checkbox as checked by default in a metabox
- Singleton Custom Field (Meta Box)
- Custom metabox not displaying multiselect data in edit mode
- How to validate select field in post meta?
- Is it preferable to use custom code to create metaboxes instead of plugins (such as ACF) and if so why? [closed]
- Values entered in a meta box aren’t saved
- How add multiple wp_editor_box to new post
- MetaBox not saving after empty
- Displaying pages with a specific custom meta
- Add a counter for mouseovers (custom field)
- Enable a short code in the custom meta field
- How to validation for sanitize_URL?
- put saved metabox values back into fields and then display on the front end
- Custom metabox not working
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Show array of meta_value in Edit Post Coloum
- How to display data from custom fields I created?
- Display metabox title for custom fields with values
- Custom Field & Gravity Forms [closed]
- Custom field bug in WordPress 3.2
- Working with multiple values and metaboxes
- Gutenberg add a custom metabox to default blocks
- Move the metaboxes to the very top of post editor
- How to improve my non-unique metadata MySQL entries?
- WordPress Blocks, setAttributes not saving
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- non-unique #_ajax_nonce id in browser console
- How to save multiple custom user profile fields using repeater JQuery
- add meta box considers the selected option as post parent
- How do I display a custom field in an existing form on the front end?
- Why does this javascript search function in the WordPress Admin not work?
- get wordpress post loop by meta box date
- Create Meta boxes dynamically
- Collect custom post in a calendar
- Sub Field of File Field
- If metabox fields has content display content
- create a custom field that let me include other posts
- Get meta value when the page is a blog archive
- Can’t save meta field value if the title not set
- Get a different meta value with ajax when different elements are clicked
- Display Data From This Custom Media Upload Meta Box?
- CSS conditional on custom field value
- My meta boxes update wp_postmeta of posts but not of pages. What is wrong with the code?
- I want my post to republish again after adding a custom field
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- Dynamic background image used in css after selector