PHP code example of hypejunction / actions_delete

1. Go to this page and download the library: Download hypejunction/actions_delete library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hypejunction / actions_delete example snippets


echo elgg_view('output/url', array(
	'text' => elgg_view_icon('delete'),
	'href' => '/action/entity/delete?guid=123",
	'is_action' => true,
));

$action_url = elgg_http_add_url_query_elements('/action/entity/delete', array(
	'guid' => 456,
	'forward_url' => '/path/to/forward/to',
));