Support » Plugin: Tweeple » Languages

  • Resolved njackson81


    In the next one or two updates look at adding language filters. I want to put a hashtag feed up on one of my pages but I want it to be able to pull tweets based on a certain language.

    No problem if this cannot be achieved, it’s a suggestion worth trying.

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



    I’m looking at the search API now, and it does appear you can query the Tweets by language.

    However, I am trying to keep the plugin’s options as lite as possible, and so I’m not sure something like this would be necessary. Wouldn’t, in most cases, your search terms or hashtag being in a certain language bring back results in that language?

    I don’t personally do anything outside of English and so I am genuinely asking. Maybe the world outside of English in regards to Twitter is much more cumbersome?

    But assuming the search API on Twitter’s dev site is correct, you could filter all of Tweeple query’ing from Twitter like this from your theme’s functions.php or your own plugin something like this:

    function my_tweeple_request_params( $params ){
    	$params['lang'] = 'en'; // Your ISO lang code
    	return $params;
    add_filter( 'tweeple_request_params', 'my_tweeple_request_params' );

Viewing 1 replies (of 1 total)
  • The topic ‘Languages’ is closed to new replies.