To get the save to work the postboxes.add_postbox_toggles( pagenow );
needs to be replaced with
postboxes.add_postbox_toggles( 'pluginname' );
In my case postboxes.add_postbox_toggles( 'church-admin' );
I’ve blogged a how to using meta boxes on plugin admin pages
Related Posts:
- Why does WordPress use outdated jQuery v1.12.4?
- How to add a javascript snippet to the footer that requires jQuery
- How to include jQuery and JavaScript files correctly?
- How Do I Use jQuery UI In My Plugin
- Get List of Registered Meta Boxes and Removing Them
- How to add tab which is visible only in admin side of product in woocommerce? [closed]
- Remove profile picture option (and other things) from profile.php (in admin)
- Test to see if jQuery or Prototype is queued by another plugin?
- jQuery in header or footer
- Hook the Keydown Event in the TinyMCE Post Editor
- Add a jQuery function to admin pages
- Save metabox with multiple checkbox array
- How to Use WordPress Color Picker API in Custom Post Type Metabox
- Help adding image upload functionality to widget
- Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types
- How to add meta boxes to the ‘Add new post’ screen?
- Using Ajax call in jQuery doesn’t work in widget
- wp_enqueue_style built in styles
- What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]
- Admin-ajax.php appending a status code to ajax response
- WordPress plugin options and jQuery
- Best choice of options/settings framework for plugin/theme development
- Mixing Regular Javascript With jQuery in a Plugin
- Admin auto-refresh is interfering with Firebug — how to prevent it?
- Loading jQuery and jQuery plugin script files correctly [duplicate]
- jquery document ready function not being called [closed]
- Add a row on clicking each post featured image
- update post meta for checkbox in the admin when inserted in the front-end
- Is there an event or an other method that tells me the preview is loaded?
- How to select the contents in the text view textrea in wp_editor?
- Custom Taxonomy to dropdown box on adminside wordpress
- Add a Save Button to Custom Meta Box [duplicate]
- Getting List of all registered Dashboard Widgets
- what is the difference between these phares?
- How to get Metabox custom field to show checked if value is updated using post meta query?
- How do I update a field of a meta box?
- Input value from metabox is not found in $_POST after post save
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- How to add a widget to the post editing view?
- jquery & ajax sending data to php
- Adding admin menus to wordpress
- Ajax submit result opens in admin-ajax.php
- how to get the post id in plugin
- Jquery was not found on this server
- WP nonce field checkbox prints checked=’checked’ outside input field
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Data not insert and update through ajax and jQuery in admin page?
- WP ajax requests not stacking?
- Insert Into Post Not Working For Audio File Using jQuery
- jquery in wordpress plugin with depdendency
- How to add custom post widgets as tags into wordpress
- ajax working when function is on child theme but not in plugin page
- Using function from enqueued .js file in theme in plugin?
- How to overwrite iris color pallates from theme to plugin
- Ajax +wordpress onClick link redirect to new page and create html content
- Use options to control jQuery plugin
- Any way to update_post_meta with html content? It gets stripped and becomes empty
- Thickbox in Plugin settings page?
- sanitizing/escaping plugin options
- Loading Images from Javascript on the Front End
- Adjust query on single
- Using jQuery prepend() with file include
- How to deal with different jQuery versions?
- Can I attach a plugin via my add_filter callback contents?
- Get cat parameter from admin-ajax
- Metabox is not displaying
- want to show CMB2 metabox on woocommerce product data tab
- Why is $_POST empty when saving custom Meta Box?
- WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit
- wp.media gallery collection sometimes undefined
- escape html in jQuery for WordPress
- Jquery php request is returning a weird result
- Query String Filtering API
- jQueryUI draggable doesn’t work in WordPress plugin
- $ is not defined [duplicate]
- Save meta box data from selected dropdown list in bbpress reply form
- Metabox types list
- WordPress Jquery with heade and footer sritp plugin
- How to save multiple values in custom post type from front end to back end
- Add WordPress Meta Box saved form input to WordPress RSS feed [duplicate]
- wp_ajax add_action fuction won’t fire on custom jQuery action
- Filterable posts using categories
- set a custom post type to a taxonomy term programmatically in metabox
- replacing jquery google cdn with a new version dynamically
- Dynamically getting tags in post edit screen
- WordPress function is not called and ajax return 0
- How can I add the Post ID to Class Name in Jquery?
- How to show metabox just in post.php in admin?
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Template file structure , wordpress hook for altering the template
- How to add jquery to my custom post type wp plugin
- How do I call the dashboard’s sortable javascript in a plugin page?
- Display Data’s metabox in page
- Show Metabox Images in slideshow instead of static
- Page reload occurs before request finishes
- Loading jQuery library from WordPress admin
- How to get the value entered in the input field in wordpres
- How react js and other Javascript Technologies works on WordPress plugin?
- How to access Elementor-navigation-elements via jQuery
- Insert meta-description into Yoast-SEO input-field via JavaScript