Hello
I'm not a developer, so I don't know.
I transferred the code created by my former developer to woody plug-in.
An error occurs.
If I forcefully ignore and turn on the snippet, the operation will be normal.
I've experienced a lot of similar problems with the code created by previous developers.
I don't know what to do because I'm not a developer.
-----------------------------------------------------------------------------
// Content Views Pro - Change the "No posts found." message
add_filter( 'pt_cv_content_no_post_found_text', 'cvp_theme_no_post_found_text', 100, 1 );
function cvp_theme_no_post_found_text( $args ) {
$args = '선택된 글을 찾을 수 없습니다';
// In case you want to set custom text for specific views
global $pt_cv_id;
if ( $pt_cv_id === 'VIEW_ID_1' ) {
$args = 'Custom text';
}
if ( $pt_cv_id === 'VIEW_ID_2' ) {
$args = 'Custom text';
}
// End
return $args;
}
======================================
the code snippet you are trying to save produced a fatal error on line 3:
Cannot redeclare cvp_theme_no_post_found_text() (previously declared in /home/comdokjongban/public_html/dokjongban.com/wp-content/plugins/insert-php/admin/metaboxes/base-options.php(764) : eval()'d code:3)
I'm not a developer, so I don't know.
I transferred the code created by my former developer to woody plug-in.
An error occurs.
If I forcefully ignore and turn on the snippet, the operation will be normal.
I've experienced a lot of similar problems with the code created by previous developers.
I don't know what to do because I'm not a developer.
-----------------------------------------------------------------------------
// Content Views Pro - Change the "No posts found." message
add_filter( 'pt_cv_content_no_post_found_text', 'cvp_theme_no_post_found_text', 100, 1 );
function cvp_theme_no_post_found_text( $args ) {
$args = '선택된 글을 찾을 수 없습니다';
// In case you want to set custom text for specific views
global $pt_cv_id;
if ( $pt_cv_id === 'VIEW_ID_1' ) {
$args = 'Custom text';
}
if ( $pt_cv_id === 'VIEW_ID_2' ) {
$args = 'Custom text';
}
// End
return $args;
}
======================================
the code snippet you are trying to save produced a fatal error on line 3:
Cannot redeclare cvp_theme_no_post_found_text() (previously declared in /home/comdokjongban/public_html/dokjongban.com/wp-content/plugins/insert-php/admin/metaboxes/base-options.php(764) : eval()'d code:3)