You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.