How to use a variable as a function name?
<?php $numcpost = of_get_option(‘how_many_custom_posts’); do { add_action( ‘init’, ‘register_cpt_mdframework_price’, $numcpost ); –$numcpost; } while ( $numcpost > 0 ); function register_cpt_mdframework_price( $numcpost ) { $singcpost = of_get_option(‘custom_posts_name_s_n’.$numcpost.”); $plurcpost = of_get_option(‘custom_posts_name_p_n’.$numcpost.”); $desccpost = of_get_option(‘custom_posts_name_d_n’.$numcpost.”); $imgcpost = of_get_option(‘custom_posts_name_i_n’.$numcpost.”); $labels = array(); // labels for $numcpost = 1 $labels[1] = array(/*typo was here*/ ‘name’ => _x( $plurcpost, ‘mdframework_custom_created_post’.$numcpost.” … Read more