Plugin Directory

Changeset 1826280


Ignore:
Timestamp:
02/21/2018 02:50:24 PM (8 years ago)
Author:
riangraphics
Message:

fixing bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • book-now/trunk/book-now.php

    r1826274 r1826280  
    22/**
    33 * @package Book_Now
    4  * @version 1.4.0
     4 * @version 1.4.1
    55 */
    66/*
     
    99Description: This plugin adds a fixed call to action button to your site, with text and link to anywhere you want.
    1010Author: RianGraphics
    11 Version: 1.4.0
     11Version: 1.4.1
    1212Author URI: https://www.riangraphics.com/book-now/
    1313*/
     
    3939add_action( 'add_meta_boxes', 'rg_meta_box_add' );
    4040function rg_meta_box_add() {
    41     add_meta_box( 'my-meta-box-id', 'Book Now Options', 'rg_meta_box_bn', 'page', 'side', 'high' );
     41    $post_types = get_post_types( array('public' => true) );
     42    foreach($post_types as $post_typess) {
     43        add_meta_box( 'my-meta-box-id', 'Book Now Options', 'rg_meta_box_bn', $post_typess, 'side', 'high' );
     44    }
    4245}
    4346function rg_meta_box_bn( $post ) {
Note: See TracChangeset for help on using the changeset viewer.