Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    Do you have any plugin installed that works with post links?

    Thread Starter v00d

    (@v00d)

    NO, i looked logs and see that system sends post_type=”oembed_cache” in to the te channel. in wptelegram’s settings choosed only a post as post type

    
    ====wptelegram_p2tg_default_inline_button===
    2020/06/25 15:00 	 button:Array
    (
        [text] => ?? Weiterlesen
        [url] => https://domain.de/c4ac05bf133901378de79c1d9b357f64/
    )
    
    2020/06/25 15:00 	 post:WP_Post Object
    (
        [ID] => 2606
        [post_author] => 0
        [post_date] => 2020-06-25 17:00:58
        [post_date_gmt] => 2020-06-25 15:00:58
        [post_content] => <blockquote><p lang="en" dir="ltr"><a href="https://twitter.com/hashtag/WelcomeUFC?src=hash&ref_src=twsrc%5Etfw">#WelcomeUFC</a> - The time has come to jump into The Octagon and diversify our partner portfolio a little… Welcome <a href="https://twitter.com/ufc?ref_src=twsrc%5Etfw">@UFC</a> to the <a href="https://twitter.com/search?q=%24CHZ&src=ctag&ref_src=twsrc%5Etfw">$CHZ</a> x <a href="https://twitter.com/socios?ref_src=twsrc%5Etfw">@socios</a> family ??<a href="https://t.co/odk6qDbjh5">https://t.co/odk6qDbjh5</a></p>&mdash; Chiliz ($CHZ) (@Chiliz) <a href="https://twitter.com/Chiliz/status/1258344935746650112?ref_src=twsrc%5Etfw">May 7, 2020</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
        [post_title] => 
        [post_excerpt] => 
        [post_status] => publish
        [comment_status] => closed
        [ping_status] => closed
        [post_password] => 
        [post_name] => c4ac05bf133901378de79c1d9b357f64
        [to_ping] => 
        [pinged] => 
        [post_modified] => 2020-06-25 17:00:58
        [post_modified_gmt] => 2020-06-25 15:00:58
        [post_content_filtered] => 
        [post_parent] => 0
        [guid] => https://domain.de/c4ac05bf133901378de79c1d9b357f64/
        [menu_order] => 0
        [post_type] => oembed_cache
        [post_mime_type] => 
        [comment_count] => 0
        [filter] => raw
    )
    
    • This reply was modified 4 years, 5 months ago by Yui.
    • This reply was modified 4 years, 5 months ago by Yui. Reason: please use CODE button for proper formatting
    Thread Starter v00d

    (@v00d)

    i solved this issue:

    add_action("wp_insert_post",function( $post_ID, $post, $update){
        if( $post && get_post_type($post) == "oembed_cache" ){
            remove_all_actions( "wp_insert_post");
        }
    },PHP_INT_MIN,3);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wrong links to the post’ is closed to new replies.