key = 'dfrapi_export'; add_action( 'admin_init', array( &$this, 'register_settings' ) ); add_action( 'admin_menu', array( $this, 'admin_menu' ) ); } function admin_menu() { add_submenu_page( 'dfrapi', __( 'Export — Datafeedr API', DFRAPI_DOMAIN ), __( 'Export', DFRAPI_DOMAIN ), 'manage_options', $this->key, array( $this, 'output' ) ); } function output() { echo '
' . __( 'To use the same selection of networks on another website, export this store\'s network data by copying the code below. Paste the code into the Import page of your other site.' ) . '
'; echo ''; echo '' . __( 'Click within the box to select all your networks and affiliate IDs.' ) . '
'; } function section_export_merchant_data() { $merchant_settings = (array) get_option( 'dfrapi_merchants' ); echo '' . __( 'To use the same selection of merchants on another website, export this store\'s merchant data by copying the code below. Paste the code into the Import page of your other site.' ) . '
'; echo ''; echo '' . __( 'Click within the box to select all your merchant IDs.' ) . '
'; } function validate( $input ) { return $input; } } // class Dfrapi_Export } // class_exists check