# share-button/1.16/admin/save_meta_boxes.php

Social Share Buttons, version 1.16. 22 lines.

- Page: https://pluginprobe.com/plugins/share-button/1.16/code/admin/save_meta_boxes.php
- Raw: https://pluginprobe.com/plugins/share-button/1.16/raw/admin/save_meta_boxes.php
- Modified: 2018-04-19T12:12:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/share-button/1.16/code/admin/save_meta_boxes.php#L10-L20`.

```php
<?php
namespace MBSocial;
defined('ABSPATH') or die('No direct access permitted');

// defined $post_type and $post in function
use MaxButtons\maxButton as maxButton;
$button = MB()->getClass('button'); // this loads the maxblocks template files 

$collection_ids = collections::getCollections();

if (count($collection_ids) == 0)
	return; // no collection no meta

foreach ($collection_ids as $collection_id)
{
	$collection = new collection($collection_id);

	$collection->save_meta_boxes($post_id, $_POST);


}

```
