Skip to content

Commit

Permalink
Prepare for next release (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadahmad21 committed Apr 15, 2024
1 parent c8f8d07 commit 3504a84
Show file tree
Hide file tree
Showing 30 changed files with 175 additions and 160 deletions.
8 changes: 0 additions & 8 deletions .changeset/hungry-seahorses-enjoy.md

This file was deleted.

6 changes: 6 additions & 0 deletions plugins/wptelegram-comments/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.1.15

### Patch Changes

- [#121](https://github.com/wpsocio/wp-projects/pull/121) [`c8f8d07`](https://github.com/wpsocio/wp-projects/commit/c8f8d077e775961a9533a286d6ee7870742be597) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Added blueprints for WP Playground

## 1.1.14

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions plugins/wptelegram-comments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
**Tags:** telegram, comments, discuss, social, widget
**Requires at least:** 6.4
**Requires PHP:** 7.4
**Tested up to:** 6.5
**Stable tag:** 1.1.14
**Tested up to:** 6.5.2
**Stable tag:** 1.1.15
**License:** GPL-3.0-or-later
**License URI:** [https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)
**Donate link:** [wpsocio.com/donate](https://wpsocio.com/donate)
Expand Down
2 changes: 1 addition & 1 deletion plugins/wptelegram-comments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wptelegram-comments",
"version": "1.1.14",
"version": "1.1.15",
"title": "WP Telegram Comments",
"description": "Add comments to posts/pages on your WordPress website by using Telegram Comments Widget",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
"Project-Id-Version: WP Telegram Comments 1.1.14\n"
"Project-Id-Version: WP Telegram Comments 1.1.15\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wptelegram-comments\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-03-26T11:21:14+00:00\n"
"POT-Creation-Date: 2024-04-15T11:52:45+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0\n"
"language: en_US\n"
Expand Down
8 changes: 4 additions & 4 deletions plugins/wptelegram-comments/src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Donate link: https://wpsocio.com/donate
Tags: telegram, comments, discuss, social, widget
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.5
Stable tag: 1.1.14
Tested up to: 6.5.2
Stable tag: 1.1.15
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -76,7 +76,7 @@ Automatic updates should work smoothly, but we still recommend you back up your

== Changelog ==

= 1.1.14 =
- Added php translation files for better performance with WP 6.5
= 1.1.15 =
- Added blueprints for WP Playground

[See full changelog](https://github.com/wpsocio/wptelegram-comments/blob/main/CHANGELOG.md)
4 changes: 2 additions & 2 deletions plugins/wptelegram-comments/src/wptelegram-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: WP Telegram Comments
* Plugin URI: https://t.me/WPTelegram
* Description: Add comments to posts/pages on your WordPress website by using Telegram Comments Widget.
* Version: 1.1.14
* Version: 1.1.15
* Requires at least: 6.4
* Requires PHP: 7.4
* Author: WP Socio
Expand All @@ -29,7 +29,7 @@
/**
* Currently plugin version.
*/
define( 'WPTELEGRAM_COMMENTS_VER', '1.1.14' );
define( 'WPTELEGRAM_COMMENTS_VER', '1.1.15' );

defined( 'WPTELEGRAM_COMMENTS_MAIN_FILE' ) || define( 'WPTELEGRAM_COMMENTS_MAIN_FILE', __FILE__ );

Expand Down
6 changes: 6 additions & 0 deletions plugins/wptelegram-login/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.10.16

### Patch Changes

- [#121](https://github.com/wpsocio/wp-projects/pull/121) [`c8f8d07`](https://github.com/wpsocio/wp-projects/commit/c8f8d077e775961a9533a286d6ee7870742be597) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Added blueprints for WP Playground

## 1.10.15

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions plugins/wptelegram-login/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
**Tags:** telegram, login, register, social, signup
**Requires at least:** 6.4
**Requires PHP:** 7.4
**Tested up to:** 6.5
**Stable tag:** 1.10.15
**Tested up to:** 6.5.2
**Stable tag:** 1.10.16
**License:** GPL-3.0-or-later
**License URI:** [https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)
**Donate link:** [wpsocio.com/donate](https://wpsocio.com/donate)
Expand Down
2 changes: 1 addition & 1 deletion plugins/wptelegram-login/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wpsocio/wptelegram-login",
"version": "1.10.15",
"version": "1.10.16",
"description": "Let the users login to your website with their Telegram and make it simple for them to get connected and let them receive their email notifications on Telegram.",
"scripts": {
"gen:docs": "\"vendor/bin/wp-documentor\" parse src --format=markdown --output=docs/README.md --relative=docs",
Expand Down
206 changes: 103 additions & 103 deletions plugins/wptelegram-login/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,46 +136,119 @@ Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 634

## Filters

### `wptelegram_login_intercept_request_on`
### `wptelegram_login_redirect_to`

*Filter the hook and priority to use for intercepting the login request.*
*Filters the redirect URL for the login button*

- [Examples](./examples/intercept_request_on.md)
It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$hook_and_priority` | `array` | The hook and priority.
`$redirect_to` | `string` | The redirect URL.

Source: [src/includes/Main.php](../src/includes/Main.php), [line 392](../src/includes/Main.php#L392-L399)
**Changelog**

### `wptelegram_login_web_app_login_data`
Version | Description
------- | -----------
`1.0.0` |

*Filters the data for the web app login.*
Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 128](../src/shared/Shared.php#L128-L137)

This can be used to customize the messages etc. for the web app login UI.
### `wptelegram_login_telegram_callback_url`

*Filters the callback URL for the login button*

It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$data` | `array` | The data for the web app login.
`$callback_url` | `string` | The callback URL.

Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 272](../src/includes/AssetManager.php#L272-L279)
**Changelog**

### `wptelegram_login_language_options`
Version | Description
------- | -----------
`1.0.0` |

*Filters the language options for the settings page.*
Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 157](../src/shared/Shared.php#L157-L166)

### `wptelegram_login_show_if_user_connected`

*Filters whether to show the button if user is already connected.*

- [Examples](./examples/show_if_user_connected.md)

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$data` | `array` | The language options.
`$translations` | `array` | The available translations.
`$show_if_connected` | `bool` | Whether to show the button if user is already connected.
`$current_user_telegram_id` | `int` | The current user's Telegram ID.

Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 408](../src/includes/AssetManager.php#L408-L414)
Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 221](../src/shared/Shared.php#L221-L229)

### `wptelegram_login_show_if_user_is`

*Filters when to show the login button*

Possible values:
"logged_out", "logged_in", "author", "subscriber" etc.

You can also pass a user role e.g "editor" or a comma separated list or an array of roles
to display the button for specific user roles

Passing an empty value will display the button
for both logged in and logged out users

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$show_if_user_is` | `string` | When to show the button.

**Changelog**

Version | Description
------- | -----------
`1.0.0` |

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 235](../src/shared/Shared.php#L235-L251)

### `wptelegram_login_use_telegram_avatar`

*Filters whether to use the Telegram avatar.*

Pass `false` to disable the Telegram avatar.

- [Examples](./examples/use_telegram_avatar.md)

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$use_telegram_avatar` | `bool` | Whether to use the Telegram avatar.
`$url` | `string` | Avatar URL.
`$id_or_email` | `mixed` | user id or email.

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 312](../src/shared/Shared.php#L312-L323)

### `wptelegram_login_custom_avatar_url`

*Filters the custom avatar URL.*

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$avatar_url` | `string` | The custom avatar URL.
`$url` | `string` | Avatar URL.
`$id_or_email` | `mixed` | user id or email.

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 357](../src/shared/Shared.php#L357-L364)

### `wptelegram_login_validation_query_params`

Expand Down Expand Up @@ -402,119 +475,46 @@ Version | Description

Source: [src/shared/widgets/Primary.php](../src/shared/widgets/Primary.php), [line 46](../src/shared/widgets/Primary.php#L46-L55)

### `wptelegram_login_redirect_to`

*Filters the redirect URL for the login button*

It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$redirect_to` | `string` | The redirect URL.

**Changelog**

Version | Description
------- | -----------
`1.0.0` |

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 128](../src/shared/Shared.php#L128-L137)

### `wptelegram_login_telegram_callback_url`

*Filters the callback URL for the login button*

It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$callback_url` | `string` | The callback URL.

**Changelog**

Version | Description
------- | -----------
`1.0.0` |

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 157](../src/shared/Shared.php#L157-L166)

### `wptelegram_login_show_if_user_connected`
### `wptelegram_login_web_app_login_data`

*Filters whether to show the button if user is already connected.*
*Filters the data for the web app login.*

- [Examples](./examples/show_if_user_connected.md)
This can be used to customize the messages etc. for the web app login UI.

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$show_if_connected` | `bool` | Whether to show the button if user is already connected.
`$current_user_telegram_id` | `int` | The current user's Telegram ID.

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 221](../src/shared/Shared.php#L221-L229)

### `wptelegram_login_show_if_user_is`

*Filters when to show the login button*
`$data` | `array` | The data for the web app login.

Possible values:
"logged_out", "logged_in", "author", "subscriber" etc.
Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 272](../src/includes/AssetManager.php#L272-L279)

You can also pass a user role e.g "editor" or a comma separated list or an array of roles
to display the button for specific user roles
### `wptelegram_login_language_options`

Passing an empty value will display the button
for both logged in and logged out users
*Filters the language options for the settings page.*

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$show_if_user_is` | `string` | When to show the button.

**Changelog**

Version | Description
------- | -----------
`1.0.0` |

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 235](../src/shared/Shared.php#L235-L251)

### `wptelegram_login_use_telegram_avatar`

*Filters whether to use the Telegram avatar.*

Pass `false` to disable the Telegram avatar.

- [Examples](./examples/use_telegram_avatar.md)

**Arguments**
`$data` | `array` | The language options.
`$translations` | `array` | The available translations.

Argument | Type | Description
-------- | ---- | -----------
`$use_telegram_avatar` | `bool` | Whether to use the Telegram avatar.
`$url` | `string` | Avatar URL.
`$id_or_email` | `mixed` | user id or email.
Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 408](../src/includes/AssetManager.php#L408-L414)

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 312](../src/shared/Shared.php#L312-L323)
### `wptelegram_login_intercept_request_on`

### `wptelegram_login_custom_avatar_url`
*Filter the hook and priority to use for intercepting the login request.*

*Filters the custom avatar URL.*
- [Examples](./examples/intercept_request_on.md)

**Arguments**

Argument | Type | Description
-------- | ---- | -----------
`$avatar_url` | `string` | The custom avatar URL.
`$url` | `string` | Avatar URL.
`$id_or_email` | `mixed` | user id or email.
`$hook_and_priority` | `array` | The hook and priority.

Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 357](../src/shared/Shared.php#L357-L364)
Source: [src/includes/Main.php](../src/includes/Main.php), [line 392](../src/includes/Main.php#L392-L399)


<p align="center"><a href="https://github.com/pronamic/wp-documentor"><img src="https://cdn.jsdelivr.net/gh/pronamic/wp-documentor@main/logos/pronamic-wp-documentor.svgo-min.svg" alt="Pronamic WordPress Documentor" width="32" height="32"></a><br><em>Generated by <a href="https://github.com/pronamic/wp-documentor">Pronamic WordPress Documentor</a> <code>1.2.0</code></em><p>
Expand Down

0 comments on commit 3504a84

Please sign in to comment.