I am not sure exactly what you are trying to ‘extend’, or how you want to extend it, but you can alter posts types with add_post_type_support
, remove_post_type_support
, and a few other functions.
You can add metaboxes to the post type with add_meta_box
setting the $post_type
argument to the name used to register your post type. (Examples are on the Codex page) Unless the original plugin provided a hook you won’t be able to directly alter its metaboxes but you can use remove_meta_box
to remove existing boxes and then add back a near clone of the metabox with your changes.
You will have to hook into save_post
or admin_action_{$_REQUEST[action]}
to save any additional fields you create.
Related Posts:
- echo value from ‘select’ field type into page template using cmb2?
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Simple Data picker meta box
- Development of a WordPress Search Plugin – Best Practices
- How can I add a column/s to wp_posts table?
- How to get custom metabox image field?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- Order custom posts by a date metabox
- How to select one major category (or custom taxonomy) for a custom post type?
- How to sort CPT by custom meta value (date), and return posts month by month
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- Metabox saving values
- add_meta_box: Datepicker like the one for postdate?
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Displaying Meta Box Image
- Multiple information using custom post type
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Display custom post on home page based on a metabox selection
- Hide Meta Boxes for Non-Admins
- How to have the right design for a custom post type without accessing themes
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Why do I lose the content of meta boxes when I leave the page?
- Dynamically add / duplicate custom meta in custom post types
- How to Duplicate (multiple meta box)?
- List of Posts in a Custom Field
- Populate Custom Fields in a Custom Post Type?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Keep display metadata value on backend – Custom Metabox
- How to check if user meta field is empty in conditional else statement
- Replace text in post from cvs
- Why is my select meta data not saving?
- dynamically add a custom field or metabox to custom post type [duplicate]
- Visual editor issue by having multiple tiny mce editors in a CPT
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- A better way to add a meta box to custom post types
- Plugin – Combine Meta Box Input Fields into single saveble record
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Dynamic dropdown select values depending on other custom field value
- Grouping metadatas into one
- Tracking changes in admin-page so user gets warning when leaving the page
- Metabox not show in categories custom post type cmb2
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Cannot save CPT meta box
- Adding Page Templates to post but it ignored it
- How to Add multiple instance of meta box to custom post type
- Custom fields for custom post type
- Custom “radio button meta box” not saving correctly
- Add additional field to custom post_type
- Add a custom meta box for client to order CPT posts how they want
- How to create multiple editor?
- Custom post type, have only my meta boxes
- Display Repeatable Meta Box Content
- create custom meta box with default value
- Create metaboxes based on custom post type
- What do the numbers mean at the end of add_action(‘save_post’)…?
- A meta box (in a custom post type) with two different type of fields
- CMB2 metabox create select with list of post from CPT
- Modify Posts from Custom_Post_Type within the plugin
- Reusable metabox backend and frontend
- Custom post type in Custom widget – $listItem
- Custom post types, disable fields
- Display custom meta on page that has been check in custom post type
- How can I output WPAlchemy repeating fields meta values in my page template?
- Adding an extra parameter [string] to my posts’ permalink?
- Problem On Retrieving Post Meta Data on Custom Column [closed]
- Add a class to post_class if more than one post shares same meta_value_num
- Empty meta-box returns publishdate if no value is set?
- Saving metabox keys and storing values as array
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to avoid duplicate posts queried from custom meta?
- Custom Metabox Info Not Saving
- PHP Warning with Custom Fields
- Problem with multi checkboxes value in metabox?
- Multiple useres editing specified content
- Show Post columns to specific users on condition
- Custom post type that lets users create a set of posts?
- Create Inclusions and exclusions
- Custom Fields through plugin in a Custom Post Type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- Avoid another meta box in my custom post type
- Delete custom post type metadata without deleting the post in admin area
- Custom Fields as Post Type Options
- Search form to find custom meta box generated data
- Custom Info Box at end of posts?
- Filter CPT based on meta box value using Flexible Posts widget?
- Textarea type on one field custom add_meta_box?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How can i do custom author list?
- loop through custom post-type with two meta_keys
- Custom meta box includes
- Creating entries with image attachements within posts and managing them in a list
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Adding a custom “Add Custom Field” button to Custom Meta boxes
- Display div based on Group metabox selection [closed]
- Retrieve a post with its ACF repeater fields in wordpress
- How to consume external API from WordPress post editor and display the response data in the custom field?