| @@ -87,8 +87,17 @@ | ||
| 87 | 87 | <td><?php echo esc_html($wpsp_class->c_loc);?></td> |
| 88 | 88 | <?php if( $current_user_role=='administrator' ) { ?> |
| 89 | 89 | <td align="center"> |
| 90 | 90 | <div class="wpsp-action-col"> |
| 91 | + <?php | |
| 92 | + /** | |
| 93 | + * Generic hook so addons (e.g. Payments) can inject their own | |
| 94 | + * per-row action icons/links without this core file needing to | |
| 95 | + * know anything about them. Passes the class id and the full | |
| 96 | + * class row object. | |
| 97 | + */ | |
| 98 | + do_action( 'wpsp_class_list_row_actions', $wpsp_class->cid, $wpsp_class ); | |
| 99 | + ?> | |
| 91 | 100 | <a href="<?php echo esc_url(wpsp_admin_url().'sch-class&id='.esc_attr($wpsp_class->cid)."&edit=true");?>" title="Edit"> |
| 92 | 101 | <i class="icon dashicons dashicons-edit wpsp-edit-icon"></i></a> |
| 93 | 102 | <a href="javascript:;" id="d_teacher" class="wpsp-popclick" data-pop="DeleteModal" title="Delete" data-id="<?php echo esc_attr($wpsp_class->cid);?>" > |
| 94 | 103 | <i class="icon dashicons dashicons-trash wpsp-delete-icon" data-id="<?php echo esc_attr($wpsp_class->cid);?>"></i> |