Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('rwmb_meta_boxes', 'woocommerce_imdb_meta_boxes');
- function woocommerce_imdb_meta_boxes($meta_boxes) {
- $meta_boxes[] = array(
- 'title' => __( 'IMDB', 'wc-imdb' ),
- 'post_types' => 'product',
- 'fields' => array(
- array(
- 'id' => 'budget',
- 'name' => __( 'budget', 'wc-imdb' ),
- 'type' => 'text',
- ),
- array(
- 'id' => 'popularity',
- 'name' => __( 'popularity', 'wc-imdb' ),
- 'type' => 'text',
- ),
- array(
- 'id' => 'genre',
- 'name' => __( 'genre', 'wc-imdb' ),
- 'type' => 'text',
- ),
- ),
- );
- return $meta_boxes;
- }
- $engc = array(
- "Action",
- "Drama",
- "Mystery",
- );
- $farc = array(
- "اکشن",
- "درام",
- "معمایی"
- );
- $countryfarsi = str_replace($engc, $farc, $a7);
Add Comment
Please, Sign In to add comment