vc.php
14 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Visual Composer related functions and hooks |
| 4 | * |
| 5 | */ |
| 6 | |
| 7 | // Add a separator between "Edit" and "Edit With Visual Composer" links in frontend. |
| 8 | function auxin_vc_edit_post_link( $link ) { |
| 9 | if ( class_exists('Vc_Frontend_Editor') ) { |
| 10 | $link .= '<i> | </i>' ; |
| 11 | } |
| 12 | return $link; |
| 13 | } |
| 14 | add_filter( 'edit_post_link', 'auxin_vc_edit_post_link' ); |