at path:
ROOT
/
wp-content
/
plugins
/
jetpack
/
modules
/
publicize.php
run:
R
W
Run
canonical-urls
DIR
2026-04-17 06:07:59
R
W
Run
carousel
DIR
2026-04-17 06:07:59
R
W
Run
comment-likes
DIR
2026-04-17 06:07:59
R
W
Run
comments
DIR
2026-04-17 06:07:59
R
W
Run
custom-post-types
DIR
2026-04-17 06:07:59
R
W
Run
external-media
DIR
2026-04-17 06:07:59
R
W
Run
google-fonts
DIR
2026-04-17 06:07:59
R
W
Run
gravatar
DIR
2026-04-17 06:07:59
R
W
Run
infinite-scroll
DIR
2026-04-17 06:07:59
R
W
Run
likes
DIR
2026-04-17 06:07:59
R
W
Run
markdown
DIR
2026-04-17 06:07:59
R
W
Run
memberships
DIR
2026-04-17 06:07:59
R
W
Run
photon-cdn
DIR
2026-04-17 06:07:59
R
W
Run
plugin-search
DIR
2026-04-17 06:07:59
R
W
Run
post-by-email
DIR
2026-04-17 06:07:59
R
W
Run
related-posts
DIR
2026-04-17 06:07:59
R
W
Run
scan
DIR
2026-04-17 06:07:59
R
W
Run
seo-tools
DIR
2026-04-17 06:07:59
R
W
Run
sharedaddy
DIR
2026-04-17 06:07:59
R
W
Run
shortcodes
DIR
2026-04-17 06:07:59
R
W
Run
simple-payments
DIR
2026-04-17 06:07:59
R
W
Run
site-icon
DIR
2026-04-17 06:07:59
R
W
Run
sitemaps
DIR
2026-04-17 06:07:59
R
W
Run
stats
DIR
2026-04-17 06:07:59
R
W
Run
subscriptions
DIR
2026-04-17 06:07:59
R
W
Run
theme-tools
DIR
2026-04-17 06:07:59
R
W
Run
tiled-gallery
DIR
2026-04-17 06:07:59
R
W
Run
verification-tools
DIR
2026-04-17 06:07:59
R
W
Run
videopress
DIR
2026-04-17 06:07:59
R
W
Run
widget-visibility
DIR
2026-04-17 06:07:59
R
W
Run
widgets
DIR
2026-04-17 06:07:59
R
W
Run
woocommerce-analytics
DIR
2026-04-17 06:07:59
R
W
Run
wordads
DIR
2026-04-17 06:07:59
R
W
Run
wpcom-tos
DIR
2026-04-17 06:07:59
R
W
Run
account-protection.php
369 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
blaze.php
1.03 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
blocks.php
1.82 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
canonical-urls.php
2.46 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
carousel.php
612 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
comment-likes.php
8.04 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
comments.php
1.08 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
contact-form.php
798 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
copy-post.php
15.43 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
custom-content-types.php
4 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
google-fonts.php
554 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
gravatar-hovercards.php
11.9 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
infinite-scroll.php
8.25 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
json-api.php
503 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
latex.php
4.66 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
likes.php
20.35 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
markdown.php
1.04 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
module-extras.php
2.69 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
module-headings.php
44.61 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
module-info.php
27.27 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
monitor.php
3.56 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
notes.php
7.88 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
photon-cdn.php
12.69 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
photon.php
698 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
plugin-search.php
21.6 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
post-by-email.php
676 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
post-list.php
570 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
protect.php
609 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
publicize.php
3.76 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
related-posts.php
2.27 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
search.php
1.18 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
seo-tools.php
1.6 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
sharedaddy.php
1.06 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
shortcodes.php
6.45 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
shortlinks.php
4.46 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
simple-payments.php
421 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
sitemaps.php
1.3 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
sso.php
743 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
stats.php
43.15 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
subscriptions.php
34.47 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
theme-tools.php
2.47 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
tiled-gallery.php
1.12 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
vaultpress.php
1.8 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
verification-tools.php
899 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
videopress.php
989 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
waf.php
309 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
widget-visibility.php
558 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
widgets.php
2.8 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
woocommerce-analytics.php
928 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
wordads.php
632 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
wpcom-reader.php
461 By
2026-04-17 06:07:59
R
W
Run
Delete
Rename
wpgroho.js
1.93 KB
2026-04-17 06:07:59
R
W
Run
Delete
Rename
error_log
up
📄
publicize.php
Save
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Module Name: Jetpack Social * Module Description: Auto‑share your posts to social networks and track engagement in one place. * Sort Order: 10 * Recommendation Order: 7 * First Introduced: 2.0 * Requires Connection: Yes * Requires User Connection: Yes * Auto Activate: No * Module Tags: Social, Recommended * Feature: Engagement * Additional Search Queries: facebook, bluesky, threads, mastodon, instagram, jetpack publicize, tumblr, linkedin, social, tweet, connections, sharing, social media, automated, automated sharing, auto publish, auto tweet and like, auto tweet, facebook auto post, facebook posting * * @package automattic/jetpack */ // phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. use Automattic\Jetpack\Status\Host; if ( ! defined( 'ABSPATH' ) ) { exit( 0 ); } /** * Class Jetpack_Publicize * * @phan-constructor-used-for-side-effects */ class Jetpack_Publicize { /** * Jetpack_Publicize constructor. */ public function __construct() { global $publicize_ui; if ( ! ( new Host() )->is_wpcom_simple() ) { Jetpack::enable_module_configurable( __FILE__ ); /* * The Publicize Options array does not currently have UI since it is being added * for a specific purpose and not part of a broader Publicize sprint. * * In order to pass the settings up to WordPress.com, we are updating an option to Sync will pass it up. * To make it relatively easy for use, we are creating a filter that checks if the option and filter match. * * This only runs when a post is saved to avoid it running too much. */ add_action( 'save_post', function () { $publicize_options = get_option( 'jetpack_publicize_options', array() ); /** * Filters the options for Publicize. * * As of Jetpack 8.5, the array keys could be: * attach_media bool If Publicize should send the image to the social media platform. Default false. * * @module publicize * * @since 8.5.0 * * @param array $options Array of Publicize options. */ $filtered = (array) apply_filters( 'jetpack_publicize_options', $publicize_options ); if ( $publicize_options !== $filtered ) { update_option( 'jetpack_publicize_options', $filtered, false ); } } ); } else { global $publicize; require_once WP_CONTENT_DIR . '/mu-plugins/keyring/keyring.php'; require_once WP_CONTENT_DIR . '/admin-plugins/publicize/publicize-wpcom.php'; $publicize = new \Publicize(); $publicize_ui = new Automattic\Jetpack\Publicize\Publicize_UI(); } } } // On Jetpack, we instantiate Jetpack_Publicize only if the Publicize module is active. if ( ! ( defined( 'IS_WPCOM' ) && IS_WPCOM ) ) { global $publicize; // None of this should be the case, but we can get here with a broken user connection. If that's the case // then we want to stop loading any more of the module code. if ( ! Jetpack::is_module_active( 'publicize' ) || ! Jetpack::connection()->has_connected_user() || ! $publicize ) { return; } new Jetpack_Publicize(); if ( ! function_exists( 'publicize_init' ) ) { /** * Helper for grabbing a Publicize object from the "front-end" (non-admin) of * a site. Normally Publicize is only loaded in wp-admin, so there's a little * set up that you might need to do if you want to use it on the front end. * Just call this function and it returns a Publicize object. * * @return \Automattic\Jetpack\Publicize\Publicize|\Publicize Object */ function publicize_init() { global $publicize; return $publicize; } } } else { // On wpcom, instantiate Jetpack_Publicize without any other checks. new Jetpack_Publicize(); }