Feature Name | Requires Connection to WordPress.com | Description | Activated for you when you first connect the plugin to WordPress.com |
---|---|---|---|
Ads | Yes | Run ads via the WordPress.com Ad network | No |
Asset CDN | No | Serve static files (from Core, Jetpack, and WooCommerce) from our CDN. | No |
Backups and Scanning | Yes | Daily or real-time backups and automated virus scanning and threat detection. All happens on WordPress.com | No |
Blocks | Yes/No | Add 27 blocks to the editor. Some rely on the WordPress.com infrastructure, others don't | Yes |
Beautiful Math | No | Use the LaTeX markup language to write mathematical equations and formulas | No |
Carousel | No | Carousel display on galleries and single images | No |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Weekly Traktivity shortcode | |
* Plugin URI: https://wordpress.org/support/topic/using-trackt-details-on-frontend/ | |
* Description: A shortcode to display tv shows and movies watched in the 7 days prior to a given date. | |
* Author: Jeremy Herve | |
* Version: 1.0.0 | |
* Author URI: https://jeremy.hu | |
* License: GPL2+ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display a Stats counter at the top of every post, with a "Views:" heading. | |
* @see https://wordpress.org/support/topic/page-views-off/ | |
* | |
* @param string $content Post content. | |
*/ | |
function jeherve_custom_display_post_views( $content ) { | |
$post_views = sprintf( | |
'<div class="stats_counter sd-content"><h3 class="sd-title">%1$s</h3><div class="sd-content">%2$s</div></div>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Markdown from Jetpack | |
* Plugin URI: https://jetpack.com | |
* Description: Use only the Markdown block in Jetpack, nothing else. This must be installed in addition to the Jetpack plugin. | |
* Author: Automattic | |
* Version: 1.0.0 | |
* Author URI: https://jetpack.com | |
* License: GPL2+ | |
* Requires at least: 5.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display a Podcast player anywhere. | |
* Pulled from extensions/blocks/podcast-player/podcast-player.php | |
* @see https://github.com/Automattic/jetpack/blob/b88b1edbdce4d8576ce9be02a9093702ae112fed/extensions/blocks/podcast-player/podcast-player.php | |
* @see https://wordpress.org/support/topic/embedding-the-podcast-player-with-code/ | |
*/ | |
function jeherve_display_podcast() { | |
// bail early if Jetpack isn't installed. | |
if ( ! class_exists( 'Jetpack' ) ) { |
You could use the jetpack_set_available_extensions
filter (reference) to avoid registering some of Jetpack's blocks in the editor. When you do so, they won't appear in the block editor.
That said, it won't change the size of the CSS file used to style those blocks in the editor; that file concatenates CSS for all blocks, regardless of what's actually available in the editor. It should not be too much of an issue though:
- That file is minified and rather small (63.8 KB right now - #).
- The file is only loaded in the editor. It is not loaded on the frontend. On your site, we only load CSS for the blocks that are on the page, and need CSS, and in those cases we use separate CSS files like the ones you can find in this directory.
I hope this clarifies things a bit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove state field from woocommerce checkout form. | |
* | |
* @see https://github.com/woocommerce/woocommerce/blob/3.1.2/includes/class-wc-countries.php#L629 | |
* | |
* @param array $fields Array of default address fields. | |
*/ | |
function jeherve_remove_state_field( $fields ) { | |
unset( $fields['state'] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Add a list of Jetpack related posts to the bottom of each post in the Rest API Posts Embeds shortcode. | |
* Plugin URI: http://jeremy.hu/ | |
* Description: Add a list of Jetpack related posts to the bottom of each post in the Rest API Posts Embeds shortcode. | |
* Author: Jeremy Herve | |
* Version: 1.0.0 | |
* Author URI: https://jeremy.hu | |
* License: GPL2+ | |
*/ |
NewerOlder