• Resolved franck_b

    (@franck_b)


    Hello,
    Since 3 years you write me a great custom login/register link for top header widget, he was pretty cool.
    But since last update he no more work i have the error:
    “Call to undefined function wpum_get_core_page_url() in functions.php line 23”

    what the name of the function who replace “wpum_get_core_page_url” ?
    I send the code for help.
    Thank you for your great work.

    	// shortcode wp user manager
    	function wpum_custom_overview_shortcode() {
    	
    	ob_start();
    	if( is_user_logged_in() ) :
    	
    	echo '<div class="menutop">';
    	echo wpum_current_user_overview();
    	echo '</div>';
    	
    	else :
    		echo '<div class="menutop">';
    		echo '<br>';
    		echo '<a href="'. wpum_get_core_page_url( 'login' ) .'">s\'identifier</a>';		
    		echo '&nbsp;-&nbsp;';
    		echo '<a href="'. wpum_get_core_page_url( 'register' ) .'">s\'enregistrer</a>';
    		echo '</div>';
    		endif;
    		$output = ob_get_clean();
    		return $output;
    		}
    		add_shortcode( 'wpum_custom_overview', 'wpum_custom_overview_shortcode' );
    • This topic was modified 6 years, 4 months ago by franck_b.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hey @franck_b,

    wpum_get_core_page_url was simply a wrapper for get_permalink https://developer.www.ads-software.com/reference/functions/get_permalink/

    So for example,

    wpum_get_core_page_url( 'register' )

    becomes

    get_permalink( wpum_get_core_page_id( 'register' ) )

    Thread Starter franck_b

    (@franck_b)

    Thank you this part seems to be workig but i have the error:
    Call to undefined function wpum_current_user_overview() in functions.php line 18.

    <?php
    	/*
    		* Functions file
    		* Calls all other required files
    		* PLEASE DO NOT EDIT THIS FILE IN ANY WAY
    		*
    		* @package tempera
    	*/
    
    		
    	// shortcode wp user manager
    	function wpum_custom_overview_shortcode() {
    	
    	ob_start();
    	if( is_user_logged_in() ) :
    	
    	echo '<div class="menutop">';
    	echo wpum_current_user_overview();
    	echo '</div>';
    	
    	else :
    		echo '<div class="menutop">';
    		echo '<br>';
    		echo '<a href="'. get_permalink( wpum_get_core_page_id( 'login' )) .'">s\'identifier</a>';		
    		echo '&nbsp;-&nbsp;';
    		echo '<a href="'. get_permalink( wpum_get_core_page_id( 'register' )) .'">s\'enregistrer</a>';
    		echo '</div>';
    		endif;
    		$output = ob_get_clean();
    		return $output;
    		}
    		add_shortcode( 'wpum_custom_overview', 'wpum_custom_overview_shortcode' );

    Thanks for your help, sorry for my english.

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    The function wpum_current_user_overview has been removed together with it’s feature. For this now, you’ll have to add your custom code in there to do what you want it to do. Because the feature has been removed I’m no longer able to provide support for it.

    In the previous version that feature was displaying the currently logged in user avatar, the name, edit account link and logout link. If you still need the feature you can take the old code as an example from the old version here https://github.com/alessandrotesoro/wp-user-manager/blob/origin/master/templates/user-overview.php and modify it to work with the new templates of WPUM.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘whats the new funcion for wpum_get_core_page_url()’ is closed to new replies.