Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WPEP PHP - Index Page Button Filters
<?php
return '<span class="dashicons dashicons-arrow-right-alt"></span> My Custom Text';
<?php
return '<span class="dashicons dashicons-arrow-right-alt"></span> ' . $button_text;
<?php
add_filter( "wpep_primary_content_item_link_title", function( $button_text ){
return '<span class="dashicons dashicons-arrow-right-alt"></span> ' . $button_text;
}, 101 );
<?php
add_filter( "wpep_primary_content_item_link_title", function( $button_text ){
return '<span class="dashicons dashicons-arrow-right-alt"></span> ' . $button_text;
}, 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.