Trigger the click
event of the publish button instead, and let WP do the work.
<script>
jQuery(document).ready(function( $ ) {
$( "#secondary-publish" ).click(function () {
$( "#publish" ).click()
});
});
</script>
Don’t use language
(it was deprecated in HTML 4.01!) – you can drop type
too (WP now has an HTML5 doctype).
Related Posts:
- Only allow new subpages to be created
- How to make certain page templates visible to admin only
- Group Pages based on Parent in Admin Area
- Create a “Dummy” parent page for a hierarchy in page listing?
- Restrict admin access to certain pages for certain users
- Can I display the widget admin in the page admin?
- Change admin startpage to Pages-page?
- Restrict acceess of a page in backend
- Hide page visual editor if template is selected – redux
- Increment Page Order As Pages Are Created
- Is there a way to remove or hide individual pages on the Edit Pages screen?
- Add custom admin menu item for pages using a certain template
- Too many pages causes WordPress admin to be unusable
- Hide pages depending on role
- Hide Visibility Option From WordPress Publish Metabox
- How to disable Page Attributes dropdown in wp-admin
- How to change redirect after moving a page to trash?
- Backend option to include a javascript file on specific pages?
- Dashboard–> All Pages “How to create folders?”
- Change the Default Pages Menu View in wp-admin
- Can I set a timer for pages to be published?
- Add a Menu Link (to a WordPress Page) in the Admin Menu/Sidebar
- Remove pages from backend list *and* update counter accordingly
- WordPress Admin – Add Edit link to specific page under Pages Menu
- How to use the same code for multiple pages?
- Problem With Pages Displaying
- Edit page’s “Restore the backup” link does nothing
- Removing the TinyMCE editor for a given page template
- Dash after page title
- Missing ‘Page Attributes’ in page edit
- Admin pages, edit notes of the title of posts and pages
- Can’t locate a hidden private page
- Redirect to page list when page published
- Role – edit page but not publish
- Ad custom admin page like WordPress customizer [closed]
- Adding Page URL to the Pages Admin Table
- How to use is_admin in page content?
- Disable ADD PDF media button on rich text editor
- Change page name in admin list
- How to disable delete option for a specific page? [closed]
- logout redirect only from admin page
- Need to create a custom page on a website
- How to exclude authors from get_pages()
- Is it possible to restrict access to specific pages in the admin area based on the page slug?
- Order by modified date working in POSTS but not PAGES
- way to make all pages with certain tags public?
- accessing the Admin page
- Translate dashboard metabox
- Custom user tables not working after migration
- remove “Edit” from select pages
- Page and admin doesnt load – i tried everything
- Pages in wp-admin is not found 404
- Front Page post mirroring revisions to other pages, constantly updating itself
- How do I locate a third party page represented as a slug in my WordPress website?
- Customise the_title in admin area
- Creating content using wp-admin pages
- My page won’t publish
- Adding CSS styles to Admin Area PAGES only (not POSTS or CPT)
- Firing page_publish where page is child page
- disable trashability for certain pages
- Custom admin menu for a selection of pages
- Pages redirect me to the homepage
- How to align bold,italic and underline in wp-admin?
- How to access variables from one plugin in another
- Default pages to be unpublished – possible?
- Output the published date / last modified date of specific page
- How to make a secondary Pages Screen
- Remove element from admin page editing part
- how to update page without reloading the page builder?
- Change the color of one or more specific items on the Pages list (Admin)
- My AJAX requests take 30 seconds to complete
- Get All Pages as strings in array
- Author information on all pages
- Attach link to pages accoding to tags
- display different pages content on single page
- How do I get my page “About” to show up on my WordPress site?
- Search Page: activate html code if the tag is on the page
- wp_is_mobile() inside js
- How to update my website with WordPress?
- Display custom_post_type with current taxonmy of a page
- Publish button inside custom field group
- Post id(login page) not found
- How to add conent (text) to Add New pages form of admin in WordPress
- Edit Page Content not showing
- Display inner pages like posts.[Like how post excerpt works]
- include exception inside theme for empty widget area
- How to end the Page Load Event and load after that?
- Managing many pages on a WordPress website
- Featured Image not displaying in a page
- How to show the view more on my display of pages shortcode
- How can I add a new page in the pages tab that belongs to specific theme?
- My pages disappeared from the list
- New page has incorrect URL
- Custom Upload Adds Ghost File
- How to get sort content by page id?
- Display child pages on homepage template
- Pre-populating new Page creation with shortcodes
- Have subdirectory name act as $_GET or $_POST data
- Set order acs and no paging for archive page
- wordpress login loop after install