Home › Forums › Front End PM PRO › How to edit some information?
- This topic has 9 replies, 2 voices, and was last updated 7 years, 4 months ago by Shamim Hasan.
- AuthorPosts
- August 9, 2018 at 7:41 pm #16317Jacques FeuzeuParticipant
Hello,
I was wondering if it’s possible to:
1) Edit this message from “You must login to view your message.” to “You must login to view/send a message. If yes, how?
2) Edit the message “Subject” to “Subject/Order number”. If yes, how?
Thanks a lot.August 9, 2018 at 7:42 pm #16320Jacques FeuzeuParticipantHello,
I was wondering if it’s possible to:
1) Edit this message from “You must login to view your message.” to “You must login to view/send a message. If yes, how?
2) Edit the message “Subject” to “Subject/Order number”. If yes, how?
Thanks a lot.August 10, 2018 at 1:01 am #16326Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if any) functions.php
1.add_filter( 'fep_main_shortcode_output', function( $out ) { if( ! is_user_logged_in() ){ $out = '<div class="fep-error">' . sprintf( __( 'You must <a href="%s">login</a> to view/send a message.', 'front-end-pm' ), wp_login_url( get_permalink() ) ) . '</div>'; } return $out; });2.
add_filter( 'fep_form_fields', function( $fields ){ if( isset( $fields['message_title'] ) ){ $fields['message_title']['label'] = __( 'Subject/Order number', 'front-end-pm' ); } return $fields; });August 10, 2018 at 3:09 am #16329Jacques FeuzeuParticipantHi,
I got “Fatal error” on the first line of this code:add_filter( 'fep_main_shortcode_output', function( $out ) {
if( ! is_user_logged_in() ){
$out = '<div class="fep-error">' . sprintf( __( 'You must login to view/send a message.', 'front-end-pm' ), wp_login_url( get_permalink() ) ) . '</div>';
}
return $out;
});August 10, 2018 at 3:11 am #16332Jacques FeuzeuParticipantThe code snippet you are trying to save produced a fatal error on line 1:
syntax error, unexpected ‘&’
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.
August 10, 2018 at 3:14 am #16335Jacques FeuzeuParticipantSorry, the code displays differently on my email. I copied here and it works.
Thanks a lot!August 10, 2018 at 3:16 am #16338Jacques FeuzeuParticipantCan the “Subject” inside the field be edited as well to “Subject/Order Number”?
Thanks again.August 10, 2018 at 10:34 am #16341Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if any) functions.php (instead of second part of above code)
add_filter( 'fep_form_fields', function( $fields ){ if( isset( $fields['message_title'] ) ){ $fields['message_title']['label'] = __( 'Subject/Order number', 'front-end-pm' ); $fields['message_title']['placeholder'] = __( 'Subject/Order number', 'front-end-pm' ); } return $fields; });August 13, 2018 at 2:43 pm #16426Jacques FeuzeuParticipantThank you very much.
Is it possible to add an instead a separate field under the “Subject” field, with a name, “Order Number” and written inside the field as well?
If this not possible, I will stay with what you proposed earlier.
Thanks a lot.August 13, 2018 at 7:58 pm #16453Shamim HasanKeymasterIt is possible but require custom coding.
You can contact using https://sp-test1.arogga.co/hire/ if you need that. - AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.