Skip to content

Filter allowing theme/plugin devs to put classes on pym shortcode output #22

@benlk

Description

@benlk

For example, if it was desired that all pym embed parent divs should have the class pym_parent:

/**
 * add 'pym_parent' to the classes on the pym field array
 * @param Array $classes
 * @return Array
 */
function my_pym_class_filter( $classes ) {
    $classes[] = 'pym_parent';
    return $classes;
}
add_filter( 'pym_element_classes', 'my_pym_class_filter' );

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions