Plugin Directory

Changeset 3486892


Ignore:
Timestamp:
03/20/2026 12:56:42 AM (10 days ago)
Author:
kusimo
Message:

Tag 1.3.0: new Pill/Card/Ghost styles, countdown popup modal, button row, icon picker, manual file

Location:
quick-download-button
Files:
1 edited
13 copied

Legend:

Unmodified
Added
Removed
  • quick-download-button/trunk/quick-download-button.php

    r3486889 r3486892  
    55 * Plugin URI: https://github.com/kusimo/quick-download-button
    66 * Description: Use to add download button link to post or page.
    7  * Version: 1.2.7
     7 * Version: 1.3.0
    88 * Author: Abidemi Kusimo
    99 *
     
    2525add_action( 'init', 'qdbu_quick_download_button_load_textdomain' );
    2626
     27/**
     28 * function qdbu_quick_download_button_load_textdomain
     29 *
     30 * @return void
     31 */
    2732function qdbu_quick_download_button_load_textdomain() {
    2833     load_plugin_textdomain( 'quick-download-button', false, basename( __DIR__ ) . '/languages' );
     
    5358add_action( 'init', 'qdbu_quick_download_button_register_blocks' );
    5459
     60/**
     61 * function qdbu_quick_download_button_register_blocks
     62 *
     63 * @return void
     64 */
    5565function qdbu_quick_download_button_register_blocks() {
    5666    //If Block Editor is not active, bail.
     
    120130}
    121131
     132/**
     133 * function qdbu_enqueue_block_editor_assets
     134 *
     135 * @return void
     136 */
    122137function qdbu_enqueue_block_editor_assets() {
    123138    // Enqueue editor-specific styles
     
    140155add_action('enqueue_block_editor_assets', 'qdbu_enqueue_block_editor_assets');
    141156
    142 
     157/**
     158 * function has_quick_download_button
     159 *
     160 * @param mixed $post_id
     161 *
     162 * @return bool
     163 */
    143164function has_quick_download_button($post_id) {
    144165    $post = get_post($post_id);
     
    159180
    160181/**
     182 * function qdbu_enqueue_download_button_styles
     183 *
    161184 * Front end CSS
     185 *
     186 * @return void
    162187 */
    163188function qdbu_enqueue_download_button_styles() {
     
    176201
    177202/**
     203 * function qdbu_button_front_end_script
     204 *
    178205 * Front end Script
     206 *
     207 * @return void
    179208 */
    180209function qdbu_button_front_end_script() {
     
    215244add_action( 'wp_ajax_quick-download-button-frontend-script', 'qdbu_download_ajax_referer' );
    216245
    217 
    218 /**
     246/**
     247 * function qdbu_download_ajax_referer
     248 *
    219249 * Nonce to be used for download page
    220  */
    221 
     250 *
     251 * @return mixed
     252 */
    222253function qdbu_download_ajax_referer() {
    223254     //nonce-field is created on page
     
    247278 * */
    248279if ( ! function_exists( 'qdbu_default_url' ) ) {
     280
     281    /**
     282     * function qdbu_default_url
     283     *
     284     * @return mixed
     285     */
    249286    function qdbu_default_url() {
    250287
     
    263300
    264301/**
     302 * function qdbu_download_button_plugin_templates
     303 *
    265304 * Get Custom Template for the download page
    266305 *
    267  * @param  mixed $template
    268  * @return void
     306 * @param mixed $template
     307 *
     308 * @return mixed
    269309 */
    270310function qdbu_download_button_plugin_templates( $template ) {
     
    282322
    283323// register custom meta tag field
    284 /**
     324
     325/**
     326 * function qdbu_register_post_meta
     327 *
    285328 * Feature development - to store the download url in the cutom field. Do not uncomment qdbu_register_post_meta.
    286329 *
    287  * @return void
     330 * @return mixed
    288331 */
    289332function qdbu_register_post_meta() {
Note: See TracChangeset for help on using the changeset viewer.