ap_post_actions_buttons()

Description #

Post actions buttons.

Changelog #

VersionDescription
2.0Introduced.

Source #

File: includes/theme.php

function ap_post_actions_buttons() {
	if ( ! is_user_logged_in() ) {
		return;
	}

	$args = wp_json_encode(
		array(
			'post_id' => get_the_ID(),
			'nonce'   => wp_create_nonce( 'post-actions-' . get_the_ID() ),
		)
	);

	echo '<postActions class="ap-dropdown"><button class="ap-btn apicon-gear ap-actions-handle ap-dropdown-toggle" ap="actiontoggle" apquery="' . esc_js( $args ) . '"></button><ul class="ap-actions ap-dropdown-menu"></ul></postActions>';
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment