Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/31/2016 06:25:55 AM (10 years ago)
Author:
r-a-y
Message:

Embeds: Introduce 'bp_enqueue_embed_scripts' hook.

This will be used to enqueue scripts on embed pages.

See #6772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-dependency.php

    r10825 r10829  
    476476
    477477/**
     478 * Fires the 'bp_enqueue_embed_scripts' action in the <head> for BP oEmbeds.
     479 *
     480 * @since 2.6.0
     481 */
     482function bp_enqueue_embed_scripts() {
     483        if ( ! is_buddypress() ) {
     484                return;
     485        }
     486
     487        /**
     488         * Enqueue CSS and JS files for BuddyPress embeds.
     489         *
     490         * @since 2.6.0
     491         */
     492        do_action ( 'bp_enqueue_embed_scripts' );
     493}
     494
     495/**
    478496 * Fire the 'bp_add_rewrite_tag' action, where BP adds its custom rewrite tags.
    479497 *
Note: See TracChangeset for help on using the changeset viewer.