Giter Club home page Giter Club logo

wpsocio / wptelegram Goto Github PK

View Code? Open in Web Editor NEW
37.0 6.0 13.0 21.16 MB

Production Repository | Integrate your WordPress site perfectly with Telegram with full control. Development takes place in our monorepo - https://github.com/wpsocio/wp-projects/tree/main/plugins/wptelegram

Home Page: https://wordpress.org/plugins/wptelegram

License: GNU General Public License v3.0

PHP 99.88% CSS 0.12%
wordpress wordpress-plugin telegram telegram-bot-api telegram-bot telegram-channel telegram-group telegram-bots proxy email-notification google-script

wptelegram's Issues

how add custom inline button row 2

How Add Custom Inline Button Row Two

public function get_inline_keyboard( $method_params ) {

	$inline_url_button = $this->options->get( 'inline_url_button' );
	$inline_button_text = $this->options->get( 'inline_button_text' );

	if ( 'on' !== $inline_url_button ) {
		return false;
	}
	
	// row 1
	$default_button = array(
		'text'	=> '๐Ÿ”— ' . $inline_button_text,
		'url'	=> self::$post_data->get_field( 'full_url' ),
	);
	// row 2
	**$default_button2 = array(
		'text'	=> '๐Ÿ”— Support',
		'url'	=> 'https://telegram.me/TbzAyhan',
	);**

	$default_button = (array) apply_filters( 'wptelegram_p2tg_default_inline_button', $default_button, self::$post, $method_params );

	$inline_keyboard[][] = $default_button;

	return (array) apply_filters( 'wptelegram_p2tg_inline_keyboard', $inline_keyboard, self::$post, $method_params );
}

Uploading image.pngโ€ฆ

strip html tags not worked in excerpt

`

  • Job Position: Technical Support Specialist โ€“ Intern
  • Job Location: Hyderabad, Telangana, India
  • Salary Package: As per Company Standards
  • Full/Part Time: Full Time
  • Req ID:
  • Education Level: Graduation
`

or structure will be like this
`

  • Job Position: Technical Support Specialist โ€“ Intern
  • Job Location: Hyderabad, Telangana, India
  • Salary Package: As per Company Standards
  • Full/Part Time: Full Time
  • Req ID:
  • Education Level: Graduation
`

i got [POST_EXCERPT] as empty

pls can u check once

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.