Filter kses_allowed_protocols
(wp-includes/functions.php wp_allowed_protocols
) to add your protocol:
add_filter( 'kses_allowed_protocols', function( $protocols ) {
$protocols[] = 'weixin';
return $protocols;
});
The default values are ‘http’, ‘https’, ‘ftp’, ‘ftps’, ‘mailto’, ‘news’, ‘irc’, ‘gopher’, ‘nntp’, ‘feed’, ‘telnet’, ‘mms’, ‘rtsp’, ‘svn’, ‘tel’, ‘fax’, and ‘xmpp’.
Related Posts:
- Admin only menu/page
- Add a data attribute to list item element in menu
- Add custom menu item using wp_nav_menu_items filter
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- wp_nav_menu remove class and id from li
- Add separator to admin submenu
- On which hook should I be calling register_nav_menu(s)?
- Removing link ” from ” menu for some “links” without JS
- Using filters to change href of nav menu page link
- Menu is not visible in appearance
- One site, 2 distinct sections: two different top nav menus?
- Links open only on new tab or window
- Make Theme automatically choose default nav menu
- How can I disable parent menu item links?
- How to get current page menu item name instead of full menu item list
- Organizing by super-categories (or nested categories)?
- Nav menu items disappearing (but not immediately)
- wp_nav_menu custom walker – child items
- Adding different classes to anchor in navigation menu
- wp_nav_menu doesn’t generate parent/ancestor classes
- Add static item to wp_nav_menu
- How to get wordpress nav menu outside of wordpress system?
- Pending Custom Link in Menu
- Add nav menu CSS class to body
- Change HTML structure for custom menu in sidebar
- Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?
- Force PDF download from custom menu?
- Page-Linking Structure
- Current menu item
- remove everything from wp_nav_menu
- Best way to customise wp_nav_menu [duplicate]
- Image as a link using wp_nav_menu()
- Fragment URL in navigation item without a custom link
- Link to Homepage in Menu
- How do I separate link levels in a custom menu walker?
- SlideDeck 2, make back-end visible for admins only
- How do you link to a place in another page without any styling issues?
- Custom Links menu items include in Search Results
- Menu custom link not working for external site
- Why is wordpress forcing https link generation?
- pull non-wp site into content area of wordpress -or- pull wp header into non wp site?
- Help with walker for nav
- Create custom page and add it in nav menu by code
- Using my WordPress menu on another platform
- Links do not open from click, only in new tab [closed]
- Adding existing links to custom navigation menus?
- Remove a menu sub-item
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- Limit User Iinterface for Admin?
- Make pages visible to only logged in members
- Get custom classes in WordPress Navigation Menu
- Replace the slug of parent pages with # [closed]
- How to change the link on the logo at the menu?
- Creating Menu Links in a Custom Theme
- The cart, checkout, and shop links not getting removed
- How do I create a root link in wordpress to a PDF file?
- How to undo the last changes to a custom menu?
- URL links consistent with menus?
- Filter to hook into menu items and add a custom attribute
- I can’t add more pages to menu – menu delete pages
- Responsive menu on genesis theme [closed]
- Opening Menu link in another tab
- Active class to current link
- How to add class to anchor using wp_nav_menu
- Simple form to add custom links to menu?
- How to open a lightbox form from a navigation menu item
- How to create this kind of sub-menu in new line?
- Main menu navigation links and new pages
- custom menu widget where menu title is a link
- 2 item in a same menu pointing to 1 page
- Hide custom menu when when no menu selected
- How to show pages in menu without link
- Menu links URL with PHP GET method
- remove or hide Link Relationship (XFN) form Menus tab
- Classes CSS (Optional) – how do I reference this in php?
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Parent link need to go first child submenu
- Adding images to anchors in the list created and fetched with wp_nav_menu
- Links in new menu don’t work
- How to make menu output links absolute
- how to display wordpress navbar with top menu outside wordpress system
- change link of menu particular tab
- Menu Structure with Links failure to update
- Top menu link anchor href value change after online server?
- Creating and populating custom nav menu (menu-item-position not working)
- Show content of subdomain from specific menu-item?
- wp_nav_menu in 3.7 add name class nav navbar-nav
- Navigational error
- How do I add a link to the menu that has a charector (?) in it?
- Remove link from Page name in navigation bar
- custom walker to add iconfont to wp_nav_menu
- Change menu item order
- Menu System: Custom Links
- Unsual behaviour of navigation Menus
- Wrapping my ‘s with
- Displaying list of random links using wp_nav_menu
- WordPress removes URL parameters from menu elements when saving the menu
- how to add permalink/slug to wordpress custom link menu item
- After WordPress 4.8 upgrade, wp_nav_menu() string search / replace not working
- Main Menu Hover is Always White