• Resolved user10522three

    (@zorrohere)


    Hi,

    I would like to display share buttons at custom location, your FAQs had some nice examples but doesn’t show how can someone use sharing header text in php.

Viewing 1 replies (of 1 total)
  • Plugin Author micropat

    (@micropat)

    Hi there. You could fetch the option, for example:

    $addtoany_options = get_option( 'addtoany_options', array() );
    $sharing_header = ! empty( $addtoany_options ) && ! empty( $addtoany_options['header'] ) ? stripslashes( $addtoany_options['header'] ) : '';

    Since the sharing header in AddToAny Settings is meant for convenience when using the Standard buttons, you might simply include your own header when placing the share buttons in a custom location, e.g.:

    <h3>Thanks for sharing!</h3>
    <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘How can I access sharing header text using PHP?’ is closed to new replies.