Support » Plugin: JM Twitter Cards » any way to programmtically define image?

  • Is there any way to adjust the plugin so that I can programmatically define which image to use depending on the title?

    With Jetpack publicise for Facebook I use

    function jeherve_custom_image( $media, $post_id, $args ) {...}

    which looks at the title and defines an image based on that. But is there a way to do the same with this plugin?

Viewing 1 replies (of 1 total)
  • Plugin Author jmau



    not sure of what this is about but you got this :

    apply_filters( 'jm_tc_image_source', $image, $this->post_ID, $this->opts )

    the filters provides you image url to replace, $post_id and global TC options

Viewing 1 replies (of 1 total)
  • The topic ‘any way to programmtically define image?’ is closed to new replies.