Skip to content

Is it possible to get the text value of "permalink" instead of an html? #334

Answered by slimndap
jaeyson asked this question in Q&A
Discussion options

You must be logged in to vote

I doesn't.

This is a WordPress filter and you need to add PHP code to the functions.php of your theme. See: https://developer.wordpress.org/plugins/hooks/filters/

Now that I had another look, it is better to use this filter:

$value = apply_filters( 'wpt/event/template/field/value', $value, $field, $args, $filters );

For example, you can add support for a new placeholder, eg {{raw_tickets_url}}.

add_filter( 'wpt_event_raw_tickets_url_html', 'my_theme_add_raw_tickets_url_placeholder', 10, 3 );

function my_theme_add_raw_tickets_url_placeholder( $html, $field, $event ) {

  if ( 'raw_tickets_url' != $field ) {
…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jaeyson
Comment options

@slimndap
Comment options

Answer selected by jaeyson
@jaeyson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants