| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | function register_recipe_modal() { |
||
| 17 | remove_action( 'lsx_content_sharing', 'lsx_sharing_output', 20 ); |
||
| 18 | ob_start(); |
||
| 19 | include LSX_HEALTH_PLAN_PATH . '/templates/content-recipe.php'; |
||
| 20 | $modal_body = ob_get_clean(); |
||
| 21 | add_action( 'lsx_content_sharing', 'lsx_sharing_output', 20 ); |
||
| 22 | \lsx_health_plan\functions\register_modal( 'recipe-modal-' . get_the_ID(), '', $modal_body ); |
||
| 23 | } |
||
| 24 |