Skip to content

Commit

Permalink
Merge pull request #44 from codersaiful/2.7.6.2
Browse files Browse the repository at this point in the history
2.7.6.2
  • Loading branch information
codersaiful authored Oct 12, 2020
2 parents 0068556 + 7fcf268 commit 2a78832
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,15 @@ Now we have to show the shortcode content using our custom file. Here we create
$my_shortcode = isset( $settings['text'] ) ? $settings['text'] : '';

echo do_shortcode( $settings['text'] );
```

How to Change Label text for URL Field and File Type Field of ACF. Use following Filter.
```php
<?php

function wpt_custom_extra_label_change( $label, $id ){
$label = get_post_meta($id, 'my_custom_label', true);
return $label;
}
add_filter( 'wpt_extra_label_text', 'wpt_custom_extra_label_change', 10, 2 );
```

0 comments on commit 2a78832

Please sign in to comment.