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

Social Share Buttons, version 0.9. 24 lines.

- Page: https://pluginprobe.com/plugins/share-button/0.9/code/admin/save_meta_boxes.php
- Raw: https://pluginprobe.com/plugins/share-button/0.9/raw/admin/save_meta_boxes.php
- Modified: 2017-11-22T15:53:42+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/0.9/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 = new maxButton(); // 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); 
	

}



```
