Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /home/volitud8/public_html/wp-content/themes/dt-the7/functions.php on line 3
You put it in other function or in other code, please be attentive. Put it a at the end of functions.php, make sure there is nothing after this code. Don't put it on beginning of your file, I see line 3.
Hi there, here is the code that I am making, and I am still getting the error message
<?php
/**
* Vogue theme.
*
* @since 1.0.0
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
/**
* Set the content width based on the theme's design and stylesheet.
*
* @since 1.0.0
*/
if ( ! isset( $content_width ) ) {
$content_width = 1200; /* pixels */
}
/**
* Initialize theme.
*
* @since 1.0.0
*/
require( trailingslashit( get_template_directory() ) . 'inc/init.php' );
function wpforo_custom_profile_url( $url, $userid, $scheme ) {
if(!is_admin()){
global $wpforo;
return $wpforo->member->get_profile_url($userid);
}
else{
return $url;
}
}
add_filter( 'edit_profile_url', 'wpforo_custom_profile_url', 10, 3 );
Please put it after this code, make sure you've removed it from other places before put it again:
if ( ! defined( 'ABSPATH' ) ) { exit; }