Created
June 27, 2018 00:36
-
-
Save rafaehlers/7f95dae3bf82fe54b16e463956fd1728 to your computer and use it in GitHub Desktop.
Replace the Edit Entry page title for specific View IDs https://docs.gravityview.co/article/374-changing-the-edit-entry-page-title
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
<?php | |
function gv_change_edit_entry_title( $previous_text = 'Edit Entry' ) { | |
$view_id = GravityView_View::getInstance()->getViewId(); | |
if($view_id == 105){ | |
return 'Edit Profile'; | |
} | |
if( ($view_id == 106) || ($view_id == 107)){ | |
return 'Edit Entry'; | |
} | |
} | |
add_filter( 'gravityview_edit_entry_title', 'gv_change_edit_entry_title', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment