carousel
9 months ago
comment-likes
9 months ago
comments
9 months ago
custom-post-types
9 months ago
external-media
9 months ago
google-fonts
9 months ago
gravatar
6 years ago
infinite-scroll
9 months ago
likes
9 months ago
markdown
9 months ago
memberships
9 months ago
photon-cdn
9 months ago
plugin-search
9 months ago
post-by-email
9 months ago
related-posts
9 months ago
scan
9 months ago
seo-tools
9 months ago
sharedaddy
9 months ago
shortcodes
9 months ago
simple-payments
9 months ago
site-icon
9 months ago
sitemaps
9 months ago
stats
9 months ago
subscriptions
9 months ago
theme-tools
9 months ago
tiled-gallery
9 months ago
verification-tools
9 months ago
videopress
9 months ago
widget-visibility
9 months ago
widgets
9 months ago
woocommerce-analytics
9 months ago
wordads
9 months ago
wpcom-tos
9 months ago
account-protection.php
9 months ago
blaze.php
9 months ago
blocks.php
9 months ago
carousel.php
9 months ago
comment-likes.php
9 months ago
comments.php
9 months ago
contact-form.php
9 months ago
copy-post.php
9 months ago
custom-content-types.php
9 months ago
google-fonts.php
9 months ago
gravatar-hovercards.php
9 months ago
infinite-scroll.php
9 months ago
json-api.php
9 months ago
latex.php
9 months ago
likes.php
9 months ago
markdown.php
9 months ago
module-extras.php
9 months ago
module-headings.php
9 months ago
module-info.php
9 months ago
monitor.php
9 months ago
notes.php
9 months ago
photon-cdn.php
9 months ago
photon.php
9 months ago
plugin-search.php
9 months ago
post-by-email.php
9 months ago
post-list.php
9 months ago
protect.php
9 months ago
publicize.php
9 months ago
related-posts.php
9 months ago
search.php
9 months ago
seo-tools.php
9 months ago
sharedaddy.php
9 months ago
shortcodes.php
9 months ago
shortlinks.php
9 months ago
simple-payments.php
9 months ago
sitemaps.php
9 months ago
sso.php
9 months ago
stats.php
9 months ago
subscriptions.php
9 months ago
theme-tools.php
9 months ago
tiled-gallery.php
9 months ago
vaultpress.php
9 months ago
verification-tools.php
9 months ago
videopress.php
9 months ago
waf.php
9 months ago
widget-visibility.php
9 months ago
widgets.php
9 months ago
woocommerce-analytics.php
9 months ago
wordads.php
9 months ago
wpgroho.js
1 year ago
blaze.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: Blaze |
| 4 | * Module Description: Promote your posts and pages across millions of sites in the WordPress.com and Tumblr ad network. |
| 5 | * Sort Order: 22 |
| 6 | * Recommendation Order: 12 |
| 7 | * First Introduced: 12.3 |
| 8 | * Requires Connection: Yes |
| 9 | * Auto Activate: Yes |
| 10 | * Module Tags: Traffic, Social |
| 11 | * Additional Search Queries: advertising, ads |
| 12 | * |
| 13 | * @package automattic/jetpack |
| 14 | */ |
| 15 | |
| 16 | use Automattic\Jetpack\Blaze; |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit( 0 ); |
| 20 | } |
| 21 | |
| 22 | Blaze::init(); |
| 23 | |
| 24 | /** |
| 25 | * Remove post row Blaze actions in the Jetpack plugin. |
| 26 | * Keep them on for products. |
| 27 | * |
| 28 | * @param bool $are_quick_links_enabled Should Blaze row actions be enabled. |
| 29 | * @param WP_Post $post The current post in the post list table. |
| 30 | * |
| 31 | * @return bool |
| 32 | */ |
| 33 | function jetpack_blaze_post_row_actions_disable( $are_quick_links_enabled, $post ) { |
| 34 | if ( 'product' !== $post->post_type ) { |
| 35 | return false; |
| 36 | } |
| 37 | |
| 38 | return $are_quick_links_enabled; |
| 39 | } |
| 40 | add_filter( 'jetpack_blaze_post_row_actions_enable', 'jetpack_blaze_post_row_actions_disable', 10, 2 ); |
| 41 |