Function Reference: geodir_hide_admin_preview_button

Summary

Removes the preview buttons from the wp-admin area for GD post types.

Description

This was removed as the preview page was causing bugs.

Global Values

$post_type
(string) (required) The current post type.

Default: None

Package

GeoDirectory

Change Log

Since: 1.4.3

Source File

geodir_hide_admin_preview_button() is located in geodirectory-admin/admin_functions.php [Line: 2195]

Source Code

function geodir_hide_admin_preview_button() {
    global $post_type;
    $post_types = geodir_get_posttypes();
    if(in_array($post_type, $post_types))
        echo '';
}