{"id":98,"date":"2015-08-07T11:25:10","date_gmt":"2015-08-07T11:25:10","guid":{"rendered":"http:\/\/buddydev.com\/mediapress\/?p=98"},"modified":"2015-08-07T11:25:10","modified_gmt":"2015-08-07T11:25:10","slug":"mpp_loaded","status":"publish","type":"post","link":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/","title":{"rendered":"mpp_loaded"},"content":{"rendered":"<h3>Description<\/h3>\n<p>This hook is called once all the MediaPress core files has been loaded. Developers should use this hook to load \u00a0the files for MediaPress dependent plugin. It is the first action hook that fires after MediaPress is loaded.<\/p>\n<h3>Parameters<\/h3>\n<p>There are no arguments passed to this hook.<\/p>\n<h3>Usage<\/h3>\n<pre class=\"lang:default decode:true \">&lt;?php add_action( 'mpp_loaded', 'function_name' ); ?&gt;<\/pre>\n<h3>\u00a0Examples<\/h3>\n<p>The code shows how to use this hook to load files for the MediaPress dependent plugin addons.<\/p>\n<pre class=\"lang:default decode:true \">add_action( 'mpp_loaded', 'mpp_addon_my_plugin_load_files' );\r\n\/**\r\n * Assuming that we are writing a MediaPress addon named mpp-addon-my-plugin\r\n * \r\n * we can put the following code in our addon plugin's main file.\r\n * It loads the given files from our addon plugin\r\n * \r\n * in this example, it loades mpp-addon-my-plugin\/core\/functions.php\r\n * and mpp-addon-my-plugin\/core\/actions.php\r\n * \r\n * Feel free to adapt the code for your purpose\r\n * \r\n *\/\r\nfunction mpp_addon_my_plugin_load_files() {\r\n\t\r\n\t$path = plugin_dir_path( __FILE__ );\r\n\t\r\n\t$files_to_load = array(\r\n\t\t'core\/functions.php', \/\/wp-content\/plugins\/mpp-addon-my-plugin\/core\/functions.php\r\n\t\t'core\/actions.php',\r\n\t);\r\n\t\r\n\tforeach( $files_to_load as $file ) {\r\n\t\t\r\n\t\trequire_once $path . $file ;\r\n\t}\r\n\t\r\n\t\/\/your plugins files got loaded\r\n}<\/pre>\n<h3>\u00a0Changelog<\/h3>\n<ul>\n<li>Since 1.0.0<\/li>\n<\/ul>\n<h3>Source<\/h3>\n<p>medisapress\/mediapress.php<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description This hook is called once all the MediaPress core files has been loaded. Developers should use this hook to load \u00a0the files for MediaPress dependent plugin. It is the first action hook that fires after MediaPress is loaded. Parameters There are no arguments passed to this hook. Usage &lt;?php add_action( &#8216;mpp_loaded&#8217;, &#8216;function_name&#8217; ); ?&gt; &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7055],"tags":[],"class_list":["clearfix","post-98","post","type-post","status-publish","format-standard","hentry","category-actions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mpp_loaded &#8226; MediaPress | BuddyDev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mpp_loaded &#8226; MediaPress | BuddyDev\" \/>\n<meta property=\"og:description\" content=\"Description This hook is called once all the MediaPress core files has been loaded. Developers should use this hook to load \u00a0the files for MediaPress dependent plugin. It is the first action hook that fires after MediaPress is loaded. Parameters There are no arguments passed to this hook. Usage &lt;?php add_action( &#039;mpp_loaded&#039;, &#039;function_name&#039; ); ?&gt; ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/\" \/>\n<meta property=\"og:site_name\" content=\"MediaPress | BuddyDev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bpdev\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-07T11:25:10+00:00\" \/>\n<meta name=\"author\" content=\"Brajesh Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sbrajesh\" \/>\n<meta name=\"twitter:site\" content=\"@buddydev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brajesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/\",\"url\":\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/\",\"name\":\"mpp_loaded &#8226; MediaPress | BuddyDev\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/#website\"},\"datePublished\":\"2015-08-07T11:25:10+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/mediapress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mpp_loaded\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#website\",\"url\":\"https:\/\/buddydev.com\/mediapress\/\",\"name\":\"MediaPress | BuddyDev\",\"description\":\"The Best Media Gallery Plugin For BuddyPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/buddydev.com\/mediapress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\",\"name\":\"Brajesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"caption\":\"Brajesh Singh\"},\"sameAs\":[\"http:\/\/buddydev.com\/members\/sbrajesh\/\",\"https:\/\/x.com\/sbrajesh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"mpp_loaded &#8226; MediaPress | BuddyDev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/","og_locale":"en_US","og_type":"article","og_title":"mpp_loaded &#8226; MediaPress | BuddyDev","og_description":"Description This hook is called once all the MediaPress core files has been loaded. Developers should use this hook to load \u00a0the files for MediaPress dependent plugin. It is the first action hook that fires after MediaPress is loaded. Parameters There are no arguments passed to this hook. Usage &lt;?php add_action( 'mpp_loaded', 'function_name' ); ?&gt; ...","og_url":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/","og_site_name":"MediaPress | BuddyDev","article_publisher":"https:\/\/www.facebook.com\/bpdev","article_published_time":"2015-08-07T11:25:10+00:00","author":"Brajesh Singh","twitter_card":"summary_large_image","twitter_creator":"@sbrajesh","twitter_site":"@buddydev","twitter_misc":{"Written by":"Brajesh Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/","url":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/","name":"mpp_loaded &#8226; MediaPress | BuddyDev","isPartOf":{"@id":"https:\/\/buddydev.com\/mediapress\/#website"},"datePublished":"2015-08-07T11:25:10+00:00","author":{"@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/mediapress\/actions\/mpp_loaded\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/mediapress\/"},{"@type":"ListItem","position":2,"name":"mpp_loaded"}]},{"@type":"WebSite","@id":"https:\/\/buddydev.com\/mediapress\/#website","url":"https:\/\/buddydev.com\/mediapress\/","name":"MediaPress | BuddyDev","description":"The Best Media Gallery Plugin For BuddyPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buddydev.com\/mediapress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb","name":"Brajesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","contentUrl":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","caption":"Brajesh Singh"},"sameAs":["http:\/\/buddydev.com\/members\/sbrajesh\/","https:\/\/x.com\/sbrajesh"]}]}},"_links":{"self":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":1,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/98\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}