Modifying Author Link to add Author Meta in URL

I don’t know the context, but i got your use case working like this: Add new permastruct and make sure to regenerate permalinks (Settings > Permalinks > Save) /** * Add additional permalink * * @uses https://codex.wordpress.org/Plugin_API/Action_Reference/init */ function wpte_add_permastruct(){ add_permastruct( ‘%author_trip_vendor%’, ‘operator/%author%’, [ ‘ep_mask’ => EP_AUTHORS, ]); } add_action( ‘init’, ‘wpte_add_permastruct’ ); Added this … Read more

Replacing a plugin function with a custom renamed function doesn’t work

First, in the original wc_bookings_get_time_slots_html() function, the following line: $block_html .= ‘<div class=”please-select”>Hi please select your session</div>’; doesn’t exist, so that is confusing for people trying to get what is the difference between the original function, and the one you copied (renamed and customized) in your active theme’s function php file. Now copying a plugin … Read more