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 load JS and CSS only on specific Pages using is_page()?
- Listing pages which uses specific template [duplicate]
- page title, parent tilte and grand parent title
- How to add jQuery script to an individual page?
- Manual excerpts for pages not working on Search
- WP is not using the select custom template.php that its selected for a page
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- One page – Multiple parents?
- Check whether the child page has siblings
- wp_dropdown_pages default value
- is_page condition not working
- How WordPress manages nested dropdown?
- Moved WP from example.com/blog to example.com, cannot add pages now
- Add ‘Last Modified’ and Attachments (Yes/No) to WordPress Users Column
- Custom page template for multiple pages
- hard coded html / php pages on local host directory don’t show up in WP dashboard
- 404 Page not found
- Styling Previous/Next Pages differently from Index
- Page access only from a specific page in wordpress website
- Displaying posts on homepage – Template Page
- Need 404 behaviour for blank parent page
- Showing Different Code on Pages With Different Layouts
- How can I edit pages from my local environment?
- Wp-Admin FTPS Connection Error unlike Filezilla
- Newly created user role not displaying on users screen
- Why can’t pages be categorized / tagged?
- List of pages of a specific user
- Multiple meta_key with get_pages
- Sup pages can’t be found
- Bundle a page with custom url and a function
- Custom Upload Adds Ghost File
- wordpress login loop after install
- Widget & storing a Select box choice
- How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount