| @@ 114-130 (lines=17) @@ | ||
| 111 | $module_array['learn_more_button'] = ob_get_clean(); |
|
| 112 | ||
| 113 | ob_start(); |
|
| 114 | if ( Jetpack::is_active() && has_action( 'jetpack_module_more_info_connected_' . $module ) ) { |
|
| 115 | /** |
|
| 116 | * Allow the display of information text when Jetpack is connected to WordPress.com. |
|
| 117 | * The dynamic part of the action, $module, is the module slug. |
|
| 118 | * |
|
| 119 | * @since 3.0.0 |
|
| 120 | */ |
|
| 121 | do_action( 'jetpack_module_more_info_connected_' . $module ); |
|
| 122 | } else { |
|
| 123 | /** |
|
| 124 | * Allow the display of information text when Jetpack is connected to WordPress.com. |
|
| 125 | * The dynamic part of the action, $module, is the module slug. |
|
| 126 | * |
|
| 127 | * @since 3.0.0 |
|
| 128 | */ |
|
| 129 | do_action( 'jetpack_module_more_info_' . $module ); |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Filter the long description of a module. |
|
| @@ 96-102 (lines=7) @@ | ||
| 93 | ||
| 94 | // Fetch the HTML formatted long description |
|
| 95 | ob_start(); |
|
| 96 | if ( Jetpack::is_active() && has_action( 'jetpack_module_more_info_connected_' . $module_slug ) ) { |
|
| 97 | /** This action is documented in class.jetpack-modules-list-table.php */ |
|
| 98 | do_action( 'jetpack_module_more_info_connected_' . $module_slug ); |
|
| 99 | } else { |
|
| 100 | /** This action is documented in class.jetpack-modules-list-table.php */ |
|
| 101 | do_action( 'jetpack_module_more_info_' . $module_slug ); |
|
| 102 | } |
|
| 103 | $module['description'] = ob_get_clean(); |
|
| 104 | ||
| 105 | return $module; |
|