Changeset 2121742
- Timestamp:
- 07/11/2019 10:27:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sermon-manager-for-wordpress/trunk/includes/sm-core-functions.php
r2118409 r2121742 565 565 * Gets sermon series image URL. 566 566 * 567 * @param int $series_id ID of the series. 567 * @param int $series_id ID of the series. 568 * @param string|array $image_size The image size to get. Either a valid image size or array with width and height in 569 * pixels. 568 570 * 569 571 * @return string|null Image URL; null if image not set or invalid/not set series ID. … … 571 573 * @since 2.11.0 572 574 */ 573 function get_sermon_series_image_url( $series_id = 0 ) {575 function get_sermon_series_image_url( $series_id = 0, $image_size = 'thumbnail' ) { 574 576 if ( ! ( is_int( $series_id ) && 0 !== $series_id ) ) { 575 577 return null; … … 578 580 $associations = sermon_image_plugin_get_associations(); 579 581 580 return ! empty( $associations[ $series_id ] ) ? wp_get_attachment_image_url( $associations[ $series_id ] ) : null;582 return ! empty( $associations[ $series_id ] ) ? wp_get_attachment_image_url( $associations[ $series_id ], $image_size ) : null; 581 583 } 582 584
Note: See TracChangeset
for help on using the changeset viewer.