By content do you mean some texts? You can use a custom template tag to show/hide messages based on visitors’ login status. Here is an implementation using wdm_before_fetch_template
hook. You have to add the code to your theme’s functions.php file. Use the tag [message_to_visitors]
in your custom link/page template.
function wpdm_message_to_visitors($vars){
global $current_user;
if( ! is_user_logged_in() )
$vars['message_to_visitors'] = "Only a guest ( not logged in ) will see this message.";
else
$vars['message_to_visitors'] = "";
return $vars;
}
add_filter('wdm_before_fetch_template', 'wpdm_message_to_visitors');
Added the following code to your child theme’s functions.php
This changes the post status to “schedule” when a future date is sent from the frontend uploader as post date,
function wpdm_change_post_status($id, $post){
$publish_date = $_POST['post_date'];
$post->post_date = $publish_date;
$post->post_date_gmt = $publish_date;
wp_update_post($post);
}
add_action('edit_package_frontend', 'wpdm_change_post_status', 10, 2);
add_action('create_package_frontend', 'wpdm_change_post_status', 10, 2);
Please send temporary wp-admin login info as a private reply. I will adjust the code there to add the feature.
Hi,
If you save only PayPal email address in the settings you have to Enable PayPal IPN Notification to complete the payment. In this approach user is redirected to the PayPal site to complete the paymet.
If you have created a PayPal app ( https://developer.paypal.com/developer/applications/create ) then get app credential from App settings. You have to save both Live and Sandbox Client ID and Client Secret. When these options are saved in Premium Package settings, you do not have to set up IPN. This checkout method is inline, which means the user stays on your site during checkout. If everything is okay with settings then you will see the “PayPal Checkout” button when selecting the PayPal option in checkout page http://prntscr.com/poquyv
Setting up PayPal smart button for Premium Packages – Digital eCommerce plugin
Thanks.
Please add the following code to your active theme’s functions.php file to remove the title prefix,
function wpdm_remove_the_title_prefix($title) { $findthese = array( '#Protected: #', '#Private: #' ); $replacewith = array( '', // What to replace "Protected: " with '' // What to replace "Private: " with ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter('the_title', 'wpdm_remove_the_title_prefix');
By the way, you can restrict the download without setting the package as private. Utilize the pacakge access permissions.
Hi,
Masterkey is meant to override the permission settings. If you want to share the download only restricted roles then use just a simple download link without the masterkey.
Thanks.
Hi,
If you want to make any change to the template then clone it and edit the cloned copy. Here is a detailed tutorial on that https://www.wpdownloadmanager.com/building-a-wordpress-download-manager-link-template-from-scratch/
Thanks.
Please install and activate the WPDM REST API to fix the issue.
Sorry for the delay. It is a bug in the template file. The tag should be [file_list_extended_64x64x3]
The numbers represent width, height, columns. Please modify the template file /tpls/page-templates/page-template-1col-ex.php
to fix the issue or edit a cloned copy.
We have the plan to implement this feature in Download Notifications add-on https://www.wpdownloadmanager.com/download/download-notifications/ Currently the add-on sends a notification to admin when someone downloads a package.
Do you want to target the file upload or package update? It is easier to target the package update action. You can use the save_post
hook in that case.
Please add the following code in importRow
function. Import process will skip the pacakge if another package exists with same title.
$title_match = get_page_by_title($csv_row['title'],ARRAY_A,'wpdmpro'); if( is_array( $title_match ) ) return;
Okay, We will add a cart widget in the next release of the Premium Package. For now link the cart page as menu item.
Please check now http://prntscr.com/pw1i8m
Does this change solve the issue in your case?
I have to check your package to find out what’s going on. Please send temporary wp-admin login info in private reply.
Do you want to show the package count? I can also hide it using another link-template if you want.
There should be a notification of update operation http://prntscr.com/pw0jnu If you can’t see this on your site, maybe there is a CSS/JS issue. Also deleted files are removed from the list after package update. Please send temporary wp-admin login info in private reply if you want me to take a look there.
Yes, that’s the patch.
Hi,
It is not possible yet to modify the name from outside. The renaming is done by $filename = time().'wpdm_'.$name;
You will find this code in /download-manager/admin/menus/class.Package.php
file.
Best regards.
Added custom code to display a message instead of a download button for this specific download. We will add a filter in the next version to modify the after submission message which you can utilize to personalize any specific package submission.
1 ) Download limit doesn’t apply on packages you purchased means you can download your purchased files as many times as you want from Dashboard > Purchases tab.
2 ) Yes, it is possible in Pre Paid credits using a combination of Rollback and Karma Points features. Please create a new ticket if you have further queries about this.
1 ) Add window.scrollTo(10, 10);
to scroll to the top http://prntscr.com/pvz57x
2 & 3 ) No easy way, require extended customization.