filter on the admin table

// this hook will create a new filter on the admin area for the specified post type add_action( ‚restrict_manage_posts‘, function($post_type){ if ($post_type != ‚contact‘) {

Read More

flex-direction

.tr-repeater { display: flex; flex-direction: column-reverse; } .tr-repeater-fields { display: flex; flex-direction: column-reverse; } .tr-repeater-fields .tr-repeater-group { margin-top:10px; }  

Read More

setCallback

function receipt_meta_box_private_notes(){ $form = tr_form(); echo $form->textarea(‚private_notes‘, array(), array( ‚label‘ => ‚ ‘ )); } add_action(‚receipt_meta_box‘, function( $post_type ){ $box = tr_meta_box(‚meta-box_private-notes‘, null, array( ‚label‘ =>

Read More

Währung

function receipt_meta_box_currency(){ $form = tr_form(); echo $form->select(‚receipt_currency‘, array( ‚class‘ => ‚receipt_currency‘ ), array( ‚label‘ => ‚ ‚ )) ->setOptions(array( ‚US Dollar‘ => ‚USD‘, ‚EURO‘ =>

Read More