Last active
July 29, 2025 15:24
-
-
Save mlbd/2c4e1836eca1a521c4d3fe12ab831f9a to your computer and use it in GitHub Desktop.
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change Elementor Editor "Submit" Button Text for Non-Publish Users
This snippet customizes the "Submit" button text in the Elementor editor for users without the “publish” capability (such as Contributors or custom roles). It replaces "Submit" with "Send for Review" (or any custom text) in Elementor’s React-based UI (v3.x+). The code uses the official elementor/editor/after_enqueue_scripts hook to inject JavaScript only into the Elementor editor interface.
How to use:
Add this code to your theme’s functions.php file or in a custom plugin.
Change the replacement text in the script if needed.
This does not affect the frontend or classic WP admin pages.
Works with Elementor v3.x+ (2024 or newer).
Does not require any third-party plugins.
For more advanced targeting (user roles, workflow), enhance the logic in the PHP or JS as needed.