Change CPT Edit Target Link for Admin List

Issue-1: edit_post_link() is a template function, to be used in theme template files. It’s not used in the Admin pages. So you’ll not get the edit_post_link filter hook for the Admin list pages. Issue-2: get_edit_post_link() function however, is used in Admin list pages. So you’ll get the get_edit_post_link filter hook for the Admin list pages. … Read more

Remove content links (internal and external), but exclude post at specific categories

To exclude certain categories from the filter function that removes links from the post content, you can modify the function to check the categories of the post before removing the links. Here is an example of how you can modify the function to exclude certain categories: add_filter(‘the_content’, ‘removelink_content’,1); function removelink_content($content=””) { // Get the categories … Read more

WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions

First of all never update production/live version, download it and try it locally or on dev server. http://bubblz.in/wp-admin seems working for me. Check do you have still page named login-page. For conflict css files you will need to remove them. add_action( ‘wp_enqueue_scripts’, ‘wp_remove_theme_enqueues’, 11 ); function wp_remove_theme_enqueues() { if( is_ThatPage()//search for that page ) { … Read more

Automatically search and replace link in content (pages/posts)?

There is somewhat similar answer in the below mentioned link: Removing any and all inline styles from the_content() where some inline style are being removed with the help of preg_replace and wordpress hooks (wp_insert_post_data & the_content). Similarly any part of the content can be modified with the as the same done in this (Removing any … Read more