/** * Charity - Causes helper * * @package charity * @since v.1.0 */ function charity_causes_column($column) { $column['donation-target'] = esc_html__('Target', 'charity'); $column['doantion-achivement'] = esc_html__('Achivement', 'charity'); $column['doantion-status'] = esc_html__('Status', 'charity'); return $column; } add_filter('manage_charity-causes_posts_columns', 'charity_causes_column'); function charity_causes_row($column_name, $post_id) { switch ($column_name) { case 'donation-target' : echo vp_metabox('doantion-settings.donation-target'); break; case 'doantion-achivement' : echo vp_metabox('doantion-settings.donation-achivement'); break; case 'doantion-status' : $status = vp_metabox('doantion-settings.doantion-status'); echo ($status == 0) ? "off" : "on"; break; default: } } add_action('manage_charity-causes_posts_custom_column', 'charity_causes_row', 10, 2); CDU hautnah im Kaiser – CDU Neureut
19. Mai 2019
Dieser Beitrag erschien am 19. Mai 2019. Weitere Artikel finden Sie im Archiv der CDU Neureut.