';
```
### Email Notification Header
```php
$author = $feedback->get_author_data();
$email_header = "From: {$author->get_display_name()}";
if ( $author->get_email() ) {
$email_header .= " <{$author->get_email()}>";
}
if ( $author->get_url() ) {
$email_header .= "\nWebsite: {$author->get_url()}";
}
// Use in wp_mail headers
$headers = [
'Reply-To: ' . $author->get_email(),
];
```
```
--------------------------------
### Get Jetpack Authorization URL
Source: https://github.com/automattic/jetpack/blob/trunk/docs/rest-api.md
Obtain a fresh URL for connecting your Jetpack installation to WordPress.com. The response is a string, not a JSON object.
```text
"https:\/\/jetpack.wordpress.com\/jetpack.authorize\/1\/?response_type=code&client_id=107314117&redirect_uri=https%3A%2F%2Fmysite.mydomain.com%2Fwp-admin%2Fadmin.php%3Fpage%3Djetpack%26action%3Dauthorize%26_wpnonce%63Db10f339f8%26redirect%3Dhttps%253A%252F%252Fmysite.mydomain.com%252Fwp-admin%252Fadmin.php%253Fpage%253Djetpack&state=1&scope=administrator%3A6493e88f3b4130d138e051a48f3b417c5cf503a&user_email=siteowner%40company.com&user_login=mysite&is_active=1&jp_version=5.3&auth_type=calypso&secret=2ejv2bbhwE44GedSjwud7233TN2lGXkxh&locale=en&blogname=mysite+Sandbox&site_url=https%3A%2F%2Fmysite.mydomain.com&home_url=https%3A%2F%2Fmysite.mydomain.com&site_icon=https%3A%2F%2Fi2.wp.com%2Fmysite.mydomain.com%2Fwp-content%2Fuploads%2F2016%2F04%2Fcropped-jetpack-logo.png%3Ffit%3D512%252C512%26ssl%3D1&site_lang=en_US&_ui=7178474&_ut=wpcom%3Auser_id"
```
--------------------------------
### Defining Plan Data for Blocks
Source: https://github.com/automattic/jetpack/blob/trunk/projects/plugins/jetpack/extensions/README.md
This example shows how to define plan data, specifying which plans support certain features. This is necessary for both WordPress.com and Jetpack environments when a block is paid for one but free for the other.
```php
const PLAN_DATA = array(
'free' => array(
'plans' => array(
'jetpack_free',
),
'supports' => array(
'opentable',
'calendly',
),
),
```
--------------------------------
### Get Feedback Entry Relative Permalink
Source: https://github.com/automattic/jetpack/blob/trunk/projects/packages/forms/docs/feedback-source-class.md
Retrieves the relative permalink for the feedback entry, suitable for use in internal links. For example, '/contact?page=2'.
```php
public function get_relative_permalink(): string
```
--------------------------------
### Pie Chart Basic Setup
Source: https://github.com/automattic/jetpack/blob/trunk/projects/js-packages/charts/src/charts/pie-chart/stories/index.docs.mdx
Basic setup for the Pie Chart component, including necessary imports and enabling tooltips and legend.
```jsx
import { PieChart } from '@automattic/charts';
import '@automattic/charts/style.css';