Remove text from confirmation message

Personally, I would keep that link (despite the page has other links/ways for accessing the post). But if you must, you can remove that “View post” link, or change the entire message, using the post_updated_messages hook. E.g. add_filter( ‘post_updated_messages’, ‘my_post_updated_messages’ ); function my_post_updated_messages( $messages ) { // Note the array index, which is 6 for … Read more

Fixing plugin for wpdb::prepare

The error you’re facing definitely isn’t coming from your code shown above. This is an error notice that was raised with WP 3.5 (IIRC) that should note that stand alone $wpdb->prepare( STATEMENT ); calls help nothing. Missing argument 2 for wpdb::prepare() tells you that you haven’t added any argument to the call. The prepare() method … Read more

How To Remove The Filter That Adds JetPack Related Content To Dom [closed]

$jprp = Jetpack_RelatedPosts::init(); remove_filter( ‘the_content’, array( $jprp, ‘filter_add_target_to_dom’ ) ); Should work fine. The Jetpack_RelatedPosts init function implements the singleton pattern, so calling it will return the already instantiated instance, which you can use to remove the filter. Just make sure you call your code late enough. The main module is hooking the add_action to … Read more