wp-pay-extensions /
memberpress
| 1 | <tr valign="top"> |
||
| 2 | <th scope="row"> |
||
| 3 | <label for="trans_num"><?php esc_html_e( 'Pronamic Subscription', 'pronamic_ideal' ); ?></label> |
||
| 4 | </th> |
||
| 5 | <td> |
||
| 6 | <?php |
||
| 7 | |||
| 8 | $query = new WP_Query( |
||
| 9 | array( |
||
| 10 | 'post_type' => 'pronamic_pay_subscr', |
||
| 11 | 'post_status' => 'any', |
||
| 12 | 'nopaging' => true, |
||
| 13 | 'meta_query' => array( |
||
| 14 | array( |
||
| 15 | 'key' => '_pronamic_subscription_source', |
||
| 16 | 'compare' => '=', |
||
| 17 | 'value' => 'memberpress', |
||
| 18 | ), |
||
| 19 | array( |
||
| 20 | 'key' => '_pronamic_subscription_source_id', |
||
| 21 | 'compare' => '=', |
||
| 22 | 'value' => $memberpress_subscription_id, |
||
| 23 | ), |
||
| 24 | ), |
||
| 25 | ) |
||
| 26 | ); |
||
| 27 | |||
| 28 | if ( $query->have_posts() ) { |
||
| 29 | echo '<ul>'; |
||
| 30 | |||
| 31 | while ( $query->have_posts() ) { |
||
| 32 | $query->the_post(); |
||
| 33 | |||
| 34 | echo '<li>'; |
||
| 35 | |||
| 36 | printf( |
||
| 37 | '<a href="%s">%s</a>', |
||
| 38 | esc_attr( get_edit_post_link( get_post() ) ), |
||
| 39 | esc_html( get_the_ID() ) |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 40 | ); |
||
| 41 | |||
| 42 | echo '</li>'; |
||
| 43 | } |
||
| 44 | |||
| 45 | echo '</ul>'; |
||
| 46 | |||
| 47 | wp_reset_postdata(); |
||
| 48 | } |
||
| 49 | |||
| 50 | ?> |
||
| 51 | </td> |
||
| 52 | </tr> |
||
| 53 |