While clicking ADD-NEW (i mean when creating new post), it has already assigned an ID. You can catch it using javascript,like:
if(document.getElementById("postID")){
alert(document.getElementById("postID"));
}
or catch it using PHP:
var_dump($GLOBALS);
and see the variable name
Related Posts:
- Wp doesn’t save meta box data
- How to get specific page screen ID
- displaying an error before update_post_meta
- Organizing Code in your WordPress Theme's functions.php File?
- How can we make managing lots of pages in WordPress Admin better?
- Create WP tutorial for users with admin pointer using next button for navigation
- How to redirect/rewrite all /wp-login requests
- Show all post tags on post edit screen/sidebox
- Add “external” link to admin menu in the backend
- Disable image attachment links
- Remove “Time to upgrade” message from dashboard
- What is the best method to close off the backend?
- Change Login URL Without Plugin
- Pre-fill fields with content from outside when creating a new post
- Why are admin scripts not printed
- White screen of death only in wp-admin
- wp-admin pages return ERR_EMPTY_RESPONSE
- wp-admin remove the subfolder URL
- Options for restricting access to wp-admin
- Unwanted redirect in admin area
- Looking for a hook to add attachment information to the media library tab
- Removing admin bar from wordpress dashboard
- How to move wp-admin login page to another location? [closed]
- WP-admin giving 404
- How to control contextual help section by code?
- Can’t access wp-admin Internal Server Error 500
- File exceeds upload_max_filesize, despite max filesize being large enough
- Can’t access dashboard, connection times out (other pages work fine)
- Getting post meta data, while editing a post in wp-admin panel [closed]
- Add custom text to Page Tamplate without need to know html
- Move WP Admin Bar
- Get Stylesheet To Showup in WP Admin Panel Editor
- Deprecated : contextual_help has been deprecated since version 3.3.0
- Just how ‘expensive’ is this function?
- Custom Background-Image not showing up
- Remove query var on admin pages when ‘Save changes’ pressed
- admin_url in plugins
- Share Tags Between Custom Posts in Admin
- Filter dropdown in users.php “delete user” bulk edit screen
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- cannot find the login page for local WordPress site
- Where did the screen options menu go?
- How do I change the upload file size limit in single-site wordpress install?
- Can’t call external stylesheet for WordPress admin (using wp_admin_css)?
- wrapping ‘rest_api_init’ in ‘is_admin()’ function
- WordPress notification reports
- Restore a layout [closed]
- Logging into sandbox subdomain WP
- Page update through theme editor caused wp admin to break
- White screen of death on admin and other dashboard pages
- TinyMCE strips breaks inside editor
- wp-admin dashboard redirects to homepage
- Can I hook into wp_update_core outside of the admin?
- /wp-admin/ doesn’t work but /admin/ does
- Renaming wp-admin without hard-coding it. Is it really possible?
- WordPress Side Menu Admin Panel Default Order numbers List?
- Why can I log into wp-login.php and not wp-admin.php?
- How to hide Admin Tabs? [duplicate]
- add_submenu_page() issue
- Restrict admin access to certain pages based on page slug
- Unable to properly login
- Is there a simple way to set wordpress site files back to out of the box?
- How to check if it’s edit.php & post_type is set?
- Dashboard : remove Safari navigator message
- Available resources for learning WordPress 4.7.2 from the ground up?
- Create new user from phpMyAdmin
- how to stop wordpress admin menu from scrolling with page
- Contextual help in wp-admin for non admins
- How to have WP admin in English while public website is in another language?
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- How to access wp-admin from original website after setting the domain redirect/forwarding
- Remove “Filter” Button on All Posts in wp-admin
- Step by step guide for new users on how to post content?
- How can I fix, Sorry, you are not allowed to access this page. I have tried the usual
- only last option from theme options is being saved to the DB
- How to check for duplicate record before saving a Custom Post Type
- Display Form in Admin Panel and Save data to Database
- Give wp-admin access for shop managers
- Cannot log in to WordPress admin or change password
- 403 Error when using save buttons
- wp-login.php entering password nothing happens
- Cached php? Updates are rendering only if logged as admin
- Js errors in wp-admin
- Avoid executing a function (redirect) if I’m in the admin area
- Wp-admin loguts me. When sign with Wp_singon
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Random HTTPs redirections at admin area in shared hosting
- WordPress Login for multiple sites
- How do I change the WordPress Address URL only and still login to wp-admin
- wordpress wp-admin showing white screen with no error
- Blank sign in page
- add_post_meta displays in admin edit area
- Forcing WordPress Administration onto a separate SSL Host
- How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?
- Action for opening edit page in admin?
- What is the point of new confirm admin email process?
- ‘Too many redirects’ error after changing site URL in WordPress [closed]
- Couple questions about .htaccess, login page, updates
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Cannot Access wp-admin