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:
- ajaxurl not defined on front end
- 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
- Dashboard like meta boxes in my plugin – how to save their position and open/closed state?
- Add a jQuery function to admin pages
- Save metabox with multiple checkbox array
- How to Add a .js file Only in one specific Page Dynamically to Head
- How to Use WordPress Color Picker API in Custom Post Type Metabox
- How to create Image gallery Metabox in wordpress [closed]
- Help adding image upload functionality to widget
- How to trap “Publish” button to check for meta box validation?
- Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types
- Use js script from one plugin in another plugin
- 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]
- Rearranging Dashboard meta boxes with use of plugin/functions.php
- Admin-ajax.php appending a status code to ajax response
- WordPress plugin options and jQuery
- Metabox Not Showing on Custom Post Type But On Pages and Post
- Ajax in WordPress – path issue
- 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]
- Show add_meta_box by selecting a specific category
- Add a row on clicking each post featured image
- how to add Jquery script to one page?
- 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
- Create & Save multiple Meta-boxes
- Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
- Add a Save Button to Custom Meta Box [duplicate]
- Dashboard – get status and position of metaboxes and pass them to ajax method
- how to search users by ajax live search
- Getting List of all registered Dashboard Widgets
- what is the difference between these phares?
- jQuery selectors for editor elements safe to use?
- 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?
- Display WordPress the_content() via data attributes
- javascript datatables in a plugin
- Input value from metabox is not found in $_POST after post save
- WordPress custom taxonomy check box to dropdown
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- Including comments meta box on a plugin page
- jQuery does not enqueue for my purpose… (before an inline script in the footer)
- Plugin – Make sure jquery is loaded in my settings page plus my JS file
- jQuery in WordPress Plugin
- How to add a widget to the post editing view?
- WP Plugin Running before jQuery
- jquery & ajax sending data to php
- should i be checking for jquery before enqueing it in a plugin
- Adding admin menus to wordpress
- jQuery instantly executes (a button click and css change) on load
- How to include jQuery into my plugin so I can use it on plugin page?
- Ajax submit result opens in admin-ajax.php
- Automating the process of shortcode generation in a plugin – how is it done?
- how to get the post id in plugin
- Jquery was not found on this server
- insert query on a custom table using ajax with jQuery plugin Jeditable
- How to enqueue scripts in right way in a plugin?
- Meta box on options page save form problem
- making a plugin that moves other plugins wp_head actions to wp_footer
- Moving/dragging a metabox removes TinyMCE’s content
- Store custom meta box data as serialized array
- 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?
- Need help about understand api, wp, $ syntax in WordPress plugin script
- Insert Into Post Not Working For Audio File Using jQuery
- How to disable a jQuery plugin on WordPress plugin page
- 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?
- jQuery UI tab does not work in the plugin page
- 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?
- How to localize data array in plugin’s option page
- sanitizing/escaping plugin options
- Load php file with jquery in single.php
- Loading Images from Javascript on the Front End
- WordPress Media Uploader not displaying image that has just been uploaded