PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 13.5
Jetpack – WP Security, Backup, Speed, & Growth v13.5
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / blaze.php
blaze.php
37 lines 986 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module Name: Blaze
4 * Module Description: Grow your audience by promoting your content across Tumblr and WordPress.com.
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 Blaze::init();
19
20 /**
21 * Remove post row Blaze actions in the Jetpack plugin.
22 * Keep them on for products.
23 *
24 * @param bool $are_quick_links_enabled Should Blaze row actions be enabled.
25 * @param WP_Post $post The current post in the post list table.
26 *
27 * @return bool
28 */
29 function jetpack_blaze_post_row_actions_disable( $are_quick_links_enabled, $post ) {
30 if ( 'product' !== $post->post_type ) {
31 return false;
32 }
33
34 return $are_quick_links_enabled;
35 }
36 add_filter( 'jetpack_blaze_post_row_actions_enable', 'jetpack_blaze_post_row_actions_disable', 10, 2 );
37