PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/photostockmall.online/wp-content/plugins/edd-wish-lists/includes/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/photostockmall.online/wp-content/plugins/edd-wish-lists/includes/install.php |
<?php /** * Install function * * @since 1.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * Installs the pages recommended by the plugin and inserts shortcodes * * @since 1.0 * @return void */ function edd_wl_install() { // return if EDD is not installed if ( ! class_exists( 'Easy_Digital_Downloads' ) ) return; global $wpdb, $edd_options; // Flush the rewrite rules flush_rewrite_rules(); // only run if wish list page has not already been set if ( ! isset( $edd_options['edd_wl_page'] ) ) { // wishlist $wishlist = wp_insert_post( array( 'post_title' => __( 'Wish Lists', 'edd-wish-lists' ), 'post_content' => '[edd_wish_lists]', 'post_status' => 'publish', 'post_author' => 1, 'post_type' => 'page', 'comment_status' => 'closed' ) ); // view $view = wp_insert_post( array( 'post_title' => __( 'View', 'edd-wish-lists' ), 'post_content' => '[edd_wish_lists_view]', 'post_status' => 'publish', 'post_author' => 1, 'post_parent' => $wishlist, 'post_type' => 'page', 'comment_status' => 'closed' ) ); // edit $edit = wp_insert_post( array( 'post_title' => __( 'Edit', 'edd-wish-lists' ), 'post_content' => '[edd_wish_lists_edit]', 'post_status' => 'publish', 'post_author' => 1, 'post_parent' => $wishlist, 'post_type' => 'page', 'comment_status' => 'closed' ) ); // create $create = wp_insert_post( array( 'post_title' => __( 'Create', 'edd-wish-lists' ), 'post_content' => '[edd_wish_lists_create]', 'post_status' => 'publish', 'post_author' => 1, 'post_parent' => $wishlist, 'post_type' => 'page', 'comment_status' => 'closed' ) ); // Store our page IDs $options = array( 'edd_wl_page' => $wishlist, 'edd_wl_page_view' => $view, 'edd_wl_page_edit' => $edit, 'edd_wl_page_create' => $create ); // get EDD options $edd_options = get_option( 'edd_settings' ); // our options $options = array_merge( $options, $edd_options ); // update the plugin settings to show these pages update_option( 'edd_settings', $options ); } // add rewrite rules on plugin activation edd_wl_rewrite_rules(); }