Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2018 01:32:52 AM (8 years ago)
Author:
tw2113
Message:

add/touchup documentation to a lot of Nouveau actions and filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r12002 r12008  
    117117        }
    118118
     119        /**
     120         * Fires after all of the BuddyPress Nouveau includes have been loaded. Passed by reference.
     121         *
     122         * @since 3.0.0
     123         *
     124         * @param BP_Nouveau $value Current BP_Nouveau instance.
     125         */
    119126        do_action_ref_array( 'bp_nouveau_includes', array( &$this ) );
    120127    }
     
    128135        $width         = 1300;
    129136        $top_offset    = 150;
     137
     138        /** This filter is documented in bp-core/bp-core-avatars.php. */
    130139        $avatar_height = apply_filters( 'bp_core_avatar_full_height', $top_offset );
    131140
     
    215224        }
    216225
     226        /**
     227         * Filters the BuddyPress Nouveau CSS dependencies.
     228         *
     229         * @since 3.0.0
     230         *
     231         * @param array $value Array of style dependencies. Default Dashicons.
     232         */
    217233        $css_dependencies = apply_filters( 'bp_nouveau_css_dependencies', array( 'dashicons' ) );
    218234
     235        /**
     236         * Filters the styles to enqueue for BuddyPress Nouveau.
     237         *
     238         * This filter provides a multidimensional array that will map to arguments used for wp_enqueue_style().
     239         * The primary index should have the stylesheet handle to use, and be assigned an array that has indexes for
     240         * file location, dependencies, and version.
     241         *
     242         * @since 3.0.0
     243         *
     244         * @param array $value Array of styles to enqueue.
     245         */
    219246        $styles = apply_filters( 'bp_nouveau_enqueue_styles', array(
    220247            'bp-nouveau' => array(
     
    270297        unset( $dependencies[ $bp_confirm ] );
    271298
     299        /**
     300         * Filters the scripts to enqueue for BuddyPress Nouveau.
     301         *
     302         * This filter provides a multidimensional array that will map to arguments used for wp_register_script().
     303         * The primary index should have the script handle to use, and be assigned an array that has indexes for
     304         * file location, dependencies, version and if it should load in the footer or not.
     305         *
     306         * @since 3.0.0
     307         *
     308         * @param array $value Array of scripts to register.
     309         */
    272310        $scripts = apply_filters( 'bp_nouveau_register_scripts', array(
    273311            'bp-nouveau' => array(
     
    337375        }
    338376
     377        /**
     378         * Fires after all of the BuddyPress Nouveau scripts have been enqueued.
     379         *
     380         * @since 3.0.0
     381         */
    339382        do_action( 'bp_nouveau_enqueue_scripts' );
    340383    }
     
    390433        }
    391434
    392         // Set the supported components
     435        /**
     436         * Filters the supported BuddyPress Nouveau components.
     437         *
     438         * @since 3.0.0
     439         *
     440         * @param array $value Array of supported components.
     441         */
    393442        $supported_objects = (array) apply_filters( 'bp_nouveau_supported_components', bp_core_get_packaged_component_ids() );
    394443        $object_nonces     = array();
     
    421470         * @since 3.0.0
    422471         *
    423          * @param array $value Array of key/value pairs for AJAX usage.
     472         * @param array $params Array of key/value pairs for AJAX usage.
    424473         */
    425474        wp_localize_script( 'bp-nouveau', 'BP_Nouveau', apply_filters( 'bp_core_get_js_strings', $params ) );
     
    442491         * Filters whether or not we are looking at a directory to determine if to return early.
    443492         *
    444          * @since 2.2.0
     493         * @since 3.0.0
    445494         *
    446495         * @param bool $value Whether or not we are viewing a directory.
Note: See TracChangeset for help on using the changeset viewer.