Use the following filter named register
:
add_filter( 'register', 'wpse_96892_register_link' );
function wpse_96892_register_link( $link )
{
if ( is_user_logged_in() )
return $link;
return str_replace(
// search
array (
site_url('wp-login.php?action=register', 'login'),
__('Register')
),
// replacements
array (
site_url('/profile'),
__('Profile Page')
),
$link
);
}
Related Posts:
- Most elegant way to enqueue scripts in function.php with foreach loop
- jquery won’t load in footer
- How do I get a child theme to load scripts from the parent theme?
- How can I load a javascript file that is type=”module” the WordPress way?
- Register and enqueue style.css custom theme
- Why won’t my scripts load?
- wp_register_script(… $in_footer = true) not working
- Not sure if enqueuing js scripts properly
- Trying to register script in footer
- Strange error from functions.php files (wp_register_script)
- Allow user select role in wordpress default registration without plugin
- Javascript file loads only on homepage, not on other pages (404 not found error)
- True parameter but jquery register in header and not in the footer with wp_register_script
- How to wp_enqueue_script with html?
- Remove snippets of JS from core
- plugins_url vs plugin_dir_url
- Get list of years when posts have been published
- Redeclare a function in a child theme
- Is it possible to remove the “standard” post format?
- Do WordPress’ cron’s clean up expired transients?
- How to add first name & last name to default registration form?
- Masking logout URL
- How can I programmatically create “child” pages on theme activation?
- Add admin bar link to edit author
- Warning/Notice about functions.php
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- Is checking whether the blog is installed necessary?
- How to add CSS style sheet dynamically in wordpress
- Replace Archive Widget Link Text
- Passing arguments to my function with do_action and add_action is not working
- How to find the source of the text for wordpress website? I want to change that text
- Count total number of images in post and echo results as number
- Functions – callback vs fallback
- List child pages of specific page using shortcode
- How to make child theme inherit parent custom theme options [closed]
- when I fetch data from remote mysql database in wordpress built in wordpress function is not working?
- Short_title character problem
- Adding HTML to the end of every post with the Block Editor
- Can I hide certain upload folders in media library [duplicate]
- Function issue with Walker_Nav_Menu [duplicate]
- Unset Category if other Category is unset during post transition
- Conditional read more adjustment
- Assigning WP functions which echo to PHP variables
- wp_nav_menu, walker class, categories as classes of li
- Calling a Function in Functions.php from an external PHP script
- WordPress menu link doesn’t work properly
- Custom shortcodes not inserting into visual composer columns
- Adding a colorbutton in tinymce dialog with current api
- Add custom function to a theme with child theme’s functions.php
- Post meta not updating
- Get category URL for current post
- How can I get the post id from within functions.php
- Check if Page Slug Exists, then display that Page’s Title
- Why doesn’t is_page(id) work in functions.php?
- Does code run faster in functions.php than in different theme templates?
- I have problems with loading javascripts
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- Function to alphabetically sort custom post types creating duplicates
- get_post_meta() problem again
- Update users custom profile fields
- does wp function the_content(); accept another tag inside
- How to parse a shortcode within a shortcode?
- Variables not showing in short code
- Add back in child theme what the parent theme removed with remove_action
- replace text in Sort Box
- Prevent loading of functions
- Get term slug by term id and then explode it
- Shortcode question
- call_user_func_array() expects parameter 1 to be a valid callback, function
- What is the better for call files: bloginfo() or echo esc_url()?
- WordPress website keeps loading the maintenance page
- loginout function customization
- define css class in functions.php
- Adding tables to the WordPress Editor
- Add Login and logout buttons to top menu bar
- Dashboard blocker on network multisite for specific user roles
- How to place a div inside a function that creates a div
- implementing a centralized content “show-do-not-show” toggle?
- How to load a css file depending on the current role
- How to change images url in function.php?
- How to add HTML into error message
- Add a word after the post url if it is within a specific category
- Probleme shortcode with list author
- Security when outputing wp_oembed_get code
- Stylesheet does not load despite functions.php
- How to show only specific category post by user role without plugin and restrict all other cats
- Unable to declare AOS library in functions
- Removing sanitize_title_with_dashes Function with The Real Title
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Graphic before title – Specific Category
- Printing medium sized image
- Edit meta fields from within template
- What to do to have access to WordPress functions
- Adding a meta box fields to child theme options page
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Remove theme, change theme button and WP version on “Right Now” admin dashboard?
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- How do i set global variable in a function in wordpress functions.php