function wpp_get_page_id() { $ids = array(); $ids['submit'] = wpp_get_id_by_shortcode(wpp_submit); $ids['view'] = wpp_get_id_by_shortcode(wpp_view); $ids['overview'] = wpp_get_id_by_shortcode(wpp_profile); return $ids; }
echo get_post_meta(get_the_ID(), 'wpp_promo_end', true); ?> </div> <div class="promotion-meta-information promotion-status"> <?php echo get_post_status(); ?> </div> <div class="promotion-meta-information promotion-edit-delete"> <?php $edit_post = add_query_arg('post', get_the_ID(), get_permalink(wpp_get_id_by_shortcode(wpp_edit))); ?> <a class="promotion-edit" href="<?php echo $edit_post; ?> "><?php _e('Edit', 'wpp'); ?> </a> <?php if (!(get_post_status() == 'trash')) { ?> <a class="promotion-delete" onclick="return confirm('<?php _e('Are you sure you wish to delete post:', 'wpp'); echo get_the_title(); ?>