AlkantarClanX12

Your IP : 216.73.217.24


Current Path : /www/capitalgmcbuickregina_830/public/wp-content/plugins/leadbox/lib/
Upload File :
Current File : /www/capitalgmcbuickregina_830/public/wp-content/plugins/leadbox/lib/landing.php

<?php

function landing_page_post_type() {

  $labels = array(
    'name'                  => _x('Landing Pages', 'Post Type General Name', 'text_domain'),
    'singular_name'         => _x('Landing Page', 'Post Type Singular Name', 'text_domain'),
    'menu_name'             => __('Landing Pages', 'text_domain'),
    'name_admin_bar'        => __('Landing Pages', 'text_domain'),
    'parent_item_colon'     => __('Landing Page parent:', 'text_domain'),
    'all_items'             => __('All landing pages', 'text_domain'),
    'add_new_item'          => __('Add new landing page', 'text_domain'),
    'add_new'               => __('Add new', 'text_domain'),
    'new_item'              => __('New landing page', 'text_domain'),
    'edit_item'             => __('Edit landing page', 'text_domain'),
    'update_item'           => __('Update landing page', 'text_domain'),
    'view_item'             => __('View landing page', 'text_domain'),
    'search_items'          => __('Search landing page', 'text_domain'),
    'not_found'             => __('Not found', 'text_domain'),
    'not_found_in_trash'    => __('Not found in trash', 'text_domain'),
    'items_list'            => __('Landing pages list', 'text_domain'),
    'items_list_navigation' => __('Landing pages list navigation', 'text_domain'),
    'filter_items_list'     => __('Filter landing pages list', 'text_domain'),
  );

  $args = array(
    'label'                 => __('Landing Page', 'text_domain'),
    'description'           => __('Landing Pages', 'text_domain'),
    'labels'                => $labels,
    'supports'              => array('title', 'editor', 'thumbnail', 'excerpt'),
    'taxonomies'            => array(),
    'hierarchical'          => false,
    'public'                => true,
    'show_ui'               => true,
    'show_in_rest'          => true,
    'show_in_menu'          => true,
    'menu_position'         => 5,
    'menu_icon'             => 'dashicons-media-document',
    'show_in_admin_bar'     => true,
    'show_in_nav_menus'     => true,
    'can_export'            => true,
    'has_archive'           => true,
    'exclude_from_search'   => false,
    'publicly_queryable'    => true,
    'capability_type'       => 'page',
    'rewrite'               => array('slug' => 'landing-page'),
  );

  register_post_type('landing-page', $args);
}

add_action('init', 'landing_page_post_type', 0);