{"id":10125,"date":"2013-12-02T16:38:23","date_gmt":"2013-12-02T16:38:23","guid":{"rendered":"http:\/\/www.oik-plugins.com\/?page_id=10125"},"modified":"2013-12-02T16:38:23","modified_gmt":"2013-12-02T16:38:23","slug":"oik-themes-apis","status":"publish","type":"page","link":"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/","title":{"rendered":"oik-themes APIs"},"content":{"rendered":"Application Programming Interfaces for the <span class=\"bw_plug\"><a class=\"plugin\" href=\"https:\/\/www.oik-plugins.com\/oik-plugins\/oik-themes-wordpress-themes-server\/\" title=\"Link to the oik-themes (oik-themes: WordPress themes server) plugin\">oik-themes<\/a><\/span> plugin:\r\n\r\n<ul class=\"bw_list\"><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_array_add2\/\">bw_array_add2() <span class=\"summary\">&#8211; Return the result of adding $amount to $array&#091;$index1]&#091;$index2]<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_function_namify\/\">bw_function_namify() <span class=\"summary\">&#8211; Return a candidate function name from the given string<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_get_userdata\/\">bw_get_userdata() <span class=\"summary\">&#8211; Get userdata for the selected user ID<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_return_field\/\">bw_return_field() <span class=\"summary\">&#8211; Return the value of the field depending on the field type<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_theme_post_types\/\">bw_theme_post_types() <span class=\"summary\">&#8211; Return an array of theme version types associated with different themes types<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_theme_types\/\">bw_theme_types() <span class=\"summary\">&#8211; Return an array of theme types\nThis is used as a select field.<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_activation\/\">oikth_activation() <span class=\"summary\">&#8211; Dependency checking for oik-themes<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_admin_menu\/\">oikth_admin_menu() <span class=\"summary\">&#8211; Implement &quot;oik_admin_menu&quot; for oik-themes<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_build_external_dir\/\">oikth_build_external_dir() <span class=\"summary\">&#8211; For non Windows servers (e.g.<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_check_post_type\/\">oikth_check_post_type() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_columns_and_titles\/\">oikth_columns_and_titles() <span class=\"summary\">&#8211; Add filters for the $post_type<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_create_new_file_name\/\">oikth_create_new_file_name() <span class=\"summary\">&#8211; Can we alter the filter in wp_handle_upload to control where the file gets stored and the\ndownload URL for it?<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download\/\">oikth_download() <span class=\"summary\">&#8211; Provide a download button for the zip attachment to this content or a selected theme ( theme=&quot;oik-fum&quot; )<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download_file\/\">oikth_download_file() <span class=\"summary\">&#8211; Deliver the theme version requested<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download__example\/\">oikth_download__example() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download__help\/\">oikth_download__help() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download__syntax\/\">oikth_download__syntax() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_force_download\/\">oikth_force_download() <span class=\"summary\">&#8211; Force the download of a file<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_attachment\/\">oikth_get_attachment() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_author_name\/\">oikth_get_author_name() <span class=\"summary\">&#8211; Return a link to the author&#8217;s home page\nDetermine the author&#8217;s display name from the post author\nthen append it to their website URL<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_author_profile\/\">oikth_get_author_profile() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_downloaded\/\">oikth_get_downloaded() <span class=\"summary\">&#8211; Return the number downloaded &#8211; when we&#8217;re ready to tell them!<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_faq\/\">oikth_get_FAQ() <span class=\"summary\">&#8211; Return the defined FAQ page for the themes server<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_latestversion\/\">oikth_get_latestversion() <span class=\"summary\">&#8211; Return the version metadata<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_package\/\">oikth_get_package() <span class=\"summary\">&#8211; Return the package URL for this theme<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_requires\/\">oikth_get_requires() <span class=\"summary\">&#8211; Get the value of the &quot;required_version&quot; custom category ( was _oikpv_requires )<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_sections\/\">oikth_get_sections() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_tested\/\">oikth_get_tested() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_theme\/\">oikth_get_theme() <span class=\"summary\">&#8211; Load the theme for the given theme version or premium version node<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_handle_upload\/\">oikth_handle_upload() <span class=\"summary\">&#8211; Implement &#8216;wp_handle_upload&#8217; filter<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_header_meta_box\/\">oikth_header_meta_box() <span class=\"summary\">&#8211; Add custom header support as required<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_increment_downloads\/\">oikth_increment_downloads() <span class=\"summary\">&#8211; Increment the downloads for this theme version<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_init\/\">oikth_init() <span class=\"summary\">&#8211; Implement the &quot;oik_fields_loaded&quot; action for oik themes server<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_inspect_request_uri\/\">oikth_inspect_request_uri() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_lazy_admin_menu\/\">oikth_lazy_admin_menu() <span class=\"summary\">&#8211; Define oik theme server settings<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_lazy_redirect\/\">oikth_lazy_redirect() <span class=\"summary\">&#8211; Implement lazy redirect for the selected action<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_load_apikey\/\">oikth_load_apikey() <span class=\"summary\">&#8211; Load a record for this apikey and check that it&#8217;s OK<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_load_theme\/\">oikth_load_theme() <span class=\"summary\">&#8211; Load the theme by $slug<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_load_themeversion\/\">oikth_load_themeversion() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_plugin_loaded\/\">oikth_plugin_loaded() <span class=\"summary\">&#8211; Function to invoke when plugin file loaded<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_tabulate_themeversion\/\">oikth_tabulate_themeversion() <span class=\"summary\">&#8211; Automatically add the table of version information for a FREE or themium oik theme<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_template_redirect\/\">oikth_template_redirect() <span class=\"summary\">&#8211; Handle the themes\/%oik-theme% request<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_add_feed\/\">oikth_theme_add_feed() <span class=\"summary\">&#8211; Add the &quot;oik_theme&quot; feed.<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_feed\/\">oikth_theme_feed() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_information\/\">oikth_theme_information() <span class=\"summary\">&#8211; https:\/\/spreadsheets.google.com\/pub?key=0AqP80E74YcUWdEdETXZLcXhjd2w0cHMwX2U1eDlWTHc&amp;authkey=CK7h9toK&amp;hl=en&amp;single=true&amp;gid=0&amp;output=html<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_rewrite\/\">oikth_theme_rewrite() <span class=\"summary\">&#8211; Implement &quot;init&quot; action for oik themes server<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_the_content\/\">oikth_the_content() <span class=\"summary\">&#8211; Autogenerate additional content for selected post_types<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_the_post_oik_themes\/\">oikth_the_post_oik_themes() <span class=\"summary\">&#8211; Add some content before &#8216;the_content&#8217; filtering<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_the_post_oik_themeversion\/\">oikth_the_post_oik_themeversion() <span class=\"summary\">&#8211; Add some content before &#8216;the_content&#8217; filtering completes for oik_themeversion<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_update_check\/\">oikth_update_check() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_validate_apikey\/\">oikth_validate_apikey() <span class=\"summary\">&#8211; validate the apikey for this selected theme version<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_validate_themeversion\/\">oikth_validate_themeversion() <span class=\"summary\">&#8211; validate the theme and version against the given post ID<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_theme\/\">oik_register_oik_theme() <span class=\"summary\">&#8211; Register the oik-themes custom post type<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_themeversion\/\">oik_register_oik_themeversion() <span class=\"summary\">&#8211; Create the oik_themeversion custom post type<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_themeversion_fields\/\">oik_register_oik_themeversion_fields() <span class=\"summary\">&#8211; Register the fields for the oik_themeversion and oik_themiumversion CPTs<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_themiumversion\/\">oik_register_oik_themiumversion() <span class=\"summary\">&#8211; Create the oik_themiumversion custom post type<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_accumulate_version\/\">oik_themes_accumulate_version() <span class=\"summary\">&#8211; Accumulate the figures for the theme version<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_add_version\/\">oik_themes_add_version() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_columns\/\">oik_themes_columns() <span class=\"summary\">&#8211; Return the columns to be displayed in the All post_type display admin page<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_fields\/\">oik_themes_fields() <span class=\"summary\">&#8211; Return the fields to be displayed in a table<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_options_do_page\/\">oik_themes_options_do_page() <span class=\"summary\">&#8211; oik themes server settings<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_server_options\/\">oik_themes_server_options() <span class=\"summary\">&#8211; Display the oik-themes server options<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_status\/\">oik_themes_status() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_status_report\/\">oik_themes_status_report() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_summarise_versions\/\">oik_themes_summarise_versions() <span class=\"summary\">&#8211; Summarise the versions for this theme<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_titles\/\">oik_themes_titles() <span class=\"summary\">&#8211; Titles are remarkably similar to columns for the admin pages\nWe remove the Product column since it&#8217;s not working properly &#8211; it&#8217;s an optional field!<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themeversion_columns\/\">oik_themeversion_columns() <span class=\"summary\">&#8211; Return the columns to be displayed<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themeversion_fields\/\">oik_themeversion_fields() <span class=\"summary\">&#8211; Return the fields to be displayed in a table<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themeversion_titles\/\">oik_themeversion_titles() <span class=\"summary\">&#8211; Create titles for oik_themeversion<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themiumversion_columns\/\">oik_themiumversion_columns() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themiumversion_fields\/\">oik_themiumversion_fields() <span class=\"summary\">&#8211; Return the fields to be displayed in a table<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themiumversion_titles\/\">oik_themiumversion_titles() <span class=\"summary\">&#8211; Titles are remarkably similar to columns for the admin pages<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_download_freeversion\/\">_oikth_download_freeversion() <span class=\"summary\">&#8211; Create a link to download the FREE version<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_download_version\/\">_oikth_download_version() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_download_wordpressversion\/\">_oikth_download_wordpressversion() <span class=\"summary\">&#8211; Create a link to download the WordPress theme\nNote: For the download to actually work this now requires the theme version, which we may not have.<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect\/\">_oikth_lazy_redirect() <span class=\"summary\">&#8211; Author: bobbingwide\nAuthor URI: http:\/\/www.bobbingwide.com\nLicense: GPL2<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect_download\/\">_oikth_lazy_redirect_download() <span class=\"summary\">&#8211; Support \/themes\/download\/?theme=theme&amp;version=version&amp;apikey=apikey&amp;action=update\/download&amp;id=id<\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect_info\/\">_oikth_lazy_redirect_info() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect_update_check\/\">_oikth_lazy_redirect_update_check() <span class=\"summary\">&#8211; <\/span><\/a><\/li><li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_purchase_premiumversion\/\">_oikth_purchase_premiumversion() <span class=\"summary\">&#8211; <\/span><\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Application Programming Interfaces for the <span class=\"bw_plug\"><a class=\"plugin\" href=\"https:\/\/www.oik-plugins.com\/oik-plugins\/oik-themes-wordpress-themes-server\/\" title=\"Link to the oik-themes (oik-themes: WordPress themes server) plugin\">oik-themes<\/a><\/span> plugin:<\/p>\n<ul class=\"bw_list\">\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_array_add2\/\">bw_array_add2() <span class=\"summary\">&#8211; Return the result of adding $amount to $array&#091;$index1]&#091;$index2]<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_function_namify\/\">bw_function_namify() <span class=\"summary\">&#8211; Return a candidate function name from the given string<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_get_userdata\/\">bw_get_userdata() <span class=\"summary\">&#8211; Get userdata for the selected user ID<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_return_field\/\">bw_return_field() <span class=\"summary\">&#8211; Return the value of the field depending on the field type<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_theme_post_types\/\">bw_theme_post_types() <span class=\"summary\">&#8211; Return an array of theme version types associated with different themes types<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/bw_theme_types\/\">bw_theme_types() <span class=\"summary\">&#8211; Return an array of theme types<br \/>\nThis is used as a select field.<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_activation\/\">oikth_activation() <span class=\"summary\">&#8211; Dependency checking for oik-themes<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_admin_menu\/\">oikth_admin_menu() <span class=\"summary\">&#8211; Implement &quot;oik_admin_menu&quot; for oik-themes<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_build_external_dir\/\">oikth_build_external_dir() <span class=\"summary\">&#8211; For non Windows servers (e.g.<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_check_post_type\/\">oikth_check_post_type() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_columns_and_titles\/\">oikth_columns_and_titles() <span class=\"summary\">&#8211; Add filters for the $post_type<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_create_new_file_name\/\">oikth_create_new_file_name() <span class=\"summary\">&#8211; Can we alter the filter in wp_handle_upload to control where the file gets stored and the<br \/>\ndownload URL for it?<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download\/\">oikth_download() <span class=\"summary\">&#8211; Provide a download button for the zip attachment to this content or a selected theme ( theme=&quot;oik-fum&quot; )<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download_file\/\">oikth_download_file() <span class=\"summary\">&#8211; Deliver the theme version requested<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download__example\/\">oikth_download__example() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download__help\/\">oikth_download__help() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_download__syntax\/\">oikth_download__syntax() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_force_download\/\">oikth_force_download() <span class=\"summary\">&#8211; Force the download of a file<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_attachment\/\">oikth_get_attachment() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_author_name\/\">oikth_get_author_name() <span class=\"summary\">&#8211; Return a link to the author&#8217;s home page<br \/>\nDetermine the author&#8217;s display name from the post author<br \/>\nthen append it to their website URL<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_author_profile\/\">oikth_get_author_profile() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_downloaded\/\">oikth_get_downloaded() <span class=\"summary\">&#8211; Return the number downloaded &#8211; when we&#8217;re ready to tell them!<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_faq\/\">oikth_get_FAQ() <span class=\"summary\">&#8211; Return the defined FAQ page for the themes server<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_latestversion\/\">oikth_get_latestversion() <span class=\"summary\">&#8211; Return the version metadata<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_package\/\">oikth_get_package() <span class=\"summary\">&#8211; Return the package URL for this theme<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_requires\/\">oikth_get_requires() <span class=\"summary\">&#8211; Get the value of the &quot;required_version&quot; custom category ( was _oikpv_requires )<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_sections\/\">oikth_get_sections() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_tested\/\">oikth_get_tested() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_get_theme\/\">oikth_get_theme() <span class=\"summary\">&#8211; Load the theme for the given theme version or premium version node<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_handle_upload\/\">oikth_handle_upload() <span class=\"summary\">&#8211; Implement &#8216;wp_handle_upload&#8217; filter<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_header_meta_box\/\">oikth_header_meta_box() <span class=\"summary\">&#8211; Add custom header support as required<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_increment_downloads\/\">oikth_increment_downloads() <span class=\"summary\">&#8211; Increment the downloads for this theme version<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_init\/\">oikth_init() <span class=\"summary\">&#8211; Implement the &quot;oik_fields_loaded&quot; action for oik themes server<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_inspect_request_uri\/\">oikth_inspect_request_uri() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_lazy_admin_menu\/\">oikth_lazy_admin_menu() <span class=\"summary\">&#8211; Define oik theme server settings<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_lazy_redirect\/\">oikth_lazy_redirect() <span class=\"summary\">&#8211; Implement lazy redirect for the selected action<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_load_apikey\/\">oikth_load_apikey() <span class=\"summary\">&#8211; Load a record for this apikey and check that it&#8217;s OK<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_load_theme\/\">oikth_load_theme() <span class=\"summary\">&#8211; Load the theme by $slug<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_load_themeversion\/\">oikth_load_themeversion() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_plugin_loaded\/\">oikth_plugin_loaded() <span class=\"summary\">&#8211; Function to invoke when plugin file loaded<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_tabulate_themeversion\/\">oikth_tabulate_themeversion() <span class=\"summary\">&#8211; Automatically add the table of version information for a FREE or themium oik theme<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_template_redirect\/\">oikth_template_redirect() <span class=\"summary\">&#8211; Handle the themes\/%oik-theme% request<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_add_feed\/\">oikth_theme_add_feed() <span class=\"summary\">&#8211; Add the &quot;oik_theme&quot; feed.<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_feed\/\">oikth_theme_feed() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_information\/\">oikth_theme_information() <span class=\"summary\">&#8211; https:\/\/spreadsheets.google.com\/pub?key=0AqP80E74YcUWdEdETXZLcXhjd2w0cHMwX2U1eDlWTHc&amp;authkey=CK7h9toK&amp;hl=en&amp;single=true&amp;gid=0&amp;output=html<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_theme_rewrite\/\">oikth_theme_rewrite() <span class=\"summary\">&#8211; Implement &quot;init&quot; action for oik themes server<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_the_content\/\">oikth_the_content() <span class=\"summary\">&#8211; Autogenerate additional content for selected post_types<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_the_post_oik_themes\/\">oikth_the_post_oik_themes() <span class=\"summary\">&#8211; Add some content before &#8216;the_content&#8217; filtering<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_the_post_oik_themeversion\/\">oikth_the_post_oik_themeversion() <span class=\"summary\">&#8211; Add some content before &#8216;the_content&#8217; filtering completes for oik_themeversion<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_update_check\/\">oikth_update_check() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_validate_apikey\/\">oikth_validate_apikey() <span class=\"summary\">&#8211; validate the apikey for this selected theme version<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oikth_validate_themeversion\/\">oikth_validate_themeversion() <span class=\"summary\">&#8211; validate the theme and version against the given post ID<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_theme\/\">oik_register_oik_theme() <span class=\"summary\">&#8211; Register the oik-themes custom post type<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_themeversion\/\">oik_register_oik_themeversion() <span class=\"summary\">&#8211; Create the oik_themeversion custom post type<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_themeversion_fields\/\">oik_register_oik_themeversion_fields() <span class=\"summary\">&#8211; Register the fields for the oik_themeversion and oik_themiumversion CPTs<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_register_oik_themiumversion\/\">oik_register_oik_themiumversion() <span class=\"summary\">&#8211; Create the oik_themiumversion custom post type<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_accumulate_version\/\">oik_themes_accumulate_version() <span class=\"summary\">&#8211; Accumulate the figures for the theme version<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_add_version\/\">oik_themes_add_version() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_columns\/\">oik_themes_columns() <span class=\"summary\">&#8211; Return the columns to be displayed in the All post_type display admin page<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_fields\/\">oik_themes_fields() <span class=\"summary\">&#8211; Return the fields to be displayed in a table<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_options_do_page\/\">oik_themes_options_do_page() <span class=\"summary\">&#8211; oik themes server settings<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_server_options\/\">oik_themes_server_options() <span class=\"summary\">&#8211; Display the oik-themes server options<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_status\/\">oik_themes_status() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_status_report\/\">oik_themes_status_report() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_summarise_versions\/\">oik_themes_summarise_versions() <span class=\"summary\">&#8211; Summarise the versions for this theme<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themes_titles\/\">oik_themes_titles() <span class=\"summary\">&#8211; Titles are remarkably similar to columns for the admin pages<br \/>\nWe remove the Product column since it&#8217;s not working properly &#8211; it&#8217;s an optional field!<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themeversion_columns\/\">oik_themeversion_columns() <span class=\"summary\">&#8211; Return the columns to be displayed<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themeversion_fields\/\">oik_themeversion_fields() <span class=\"summary\">&#8211; Return the fields to be displayed in a table<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themeversion_titles\/\">oik_themeversion_titles() <span class=\"summary\">&#8211; Create titles for oik_themeversion<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themiumversion_columns\/\">oik_themiumversion_columns() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themiumversion_fields\/\">oik_themiumversion_fields() <span class=\"summary\">&#8211; Return the fields to be displayed in a table<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/oik_themiumversion_titles\/\">oik_themiumversion_titles() <span class=\"summary\">&#8211; Titles are remarkably similar to columns for the admin pages<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_download_freeversion\/\">_oikth_download_freeversion() <span class=\"summary\">&#8211; Create a link to download the FREE version<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_download_version\/\">_oikth_download_version() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_download_wordpressversion\/\">_oikth_download_wordpressversion() <span class=\"summary\">&#8211; Create a link to download the WordPress theme<br \/>\nNote: For the download to actually work this now requires the theme version, which we may not have.<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect\/\">_oikth_lazy_redirect() <span class=\"summary\">&#8211; Author: bobbingwide<br \/>\nAuthor URI: http:\/\/www.bobbingwide.com<br \/>\nLicense: GPL2<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect_download\/\">_oikth_lazy_redirect_download() <span class=\"summary\">&#8211; Support \/themes\/download\/?theme=theme&amp;version=version&amp;apikey=apikey&amp;action=update\/download&amp;id=id<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect_info\/\">_oikth_lazy_redirect_info() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_lazy_redirect_update_check\/\">_oikth_lazy_redirect_update_check() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.oik-plugins.com\/oik_api\/_oikth_purchase_premiumversion\/\">_oikth_purchase_premiumversion() <span class=\"summary\">&#8211; <\/span><\/a><\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"parent":1771,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"letters":[513],"class_list":{"0":"post-10125","1":"page","2":"type-page","3":"status-publish","5":"letters-o","6":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>oik-themes APIs - [oik] plugins.com<\/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:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"oik-themes APIs - [oik] plugins.com\" \/>\n<meta property=\"og:description\" content=\"Application Programming Interfaces for the oik-themes plugin:  bw_array_add2() &#8211; Return the result of adding $amount to $array&#091;$index1]&#091;$index2]bw_function_namify() &#8211; Return a candidate function name from the given stringbw_get_userdata() &#8211; Get userdata for the selected user IDbw_return_field() &#8211; Return the value of the field depending on the field typebw_theme_post_types() &#8211; Return an array of theme version types associated with different themes typesbw_theme_types() &#8211; Return an array of theme types This is used as a select field.oikth_activation() &#8211; Dependency checking for oik-themesoikth_admin_menu() &#8211; Implement &quot;oik_admin_menu&quot; for oik-themesoikth_build_external_dir() &#8211; For non Windows servers (e.g.oikth_check_post_type() &#8211; oikth_columns_and_titles() &#8211; Add filters for the $post_typeoikth_create_new_file_name() &#8211; Can we alter the filter in wp_handle_upload to control where the file gets stored and the download URL for it?oikth_download() &#8211; Provide a download button for the zip attachment to this content or a selected theme ( theme=&quot;oik-fum&quot; )oikth_download_file() &#8211; Deliver the theme version requestedoikth_download__example() &#8211; oikth_download__help() &#8211; oikth_download__syntax() &#8211; oikth_force_download() &#8211; Force the download of a fileoikth_get_attachment() &#8211; oikth_get_author_name() &#8211; Return a link to the author&#8217;s home page Determine the author&#8217;s display name from the post author then append it to their website URLoikth_get_author_profile() &#8211; oikth_get_downloaded() &#8211; Return the number downloaded &#8211; when we&#8217;re ready to tell them!oikth_get_FAQ() &#8211; Return the defined FAQ page for the themes serveroikth_get_latestversion() &#8211; Return the version metadataoikth_get_package() &#8211; Return the package URL for this themeoikth_get_requires() &#8211; Get the value of the &quot;required_version&quot; custom category ( was _oikpv_requires )oikth_get_sections() &#8211; oikth_get_tested() &#8211; oikth_get_theme() &#8211; Load the theme for the given theme version or premium version nodeoikth_handle_upload() &#8211; Implement &#8216;wp_handle_upload&#8217; filteroikth_header_meta_box() &#8211; Add custom header support as requiredoikth_increment_downloads() &#8211; Increment the downloads for this theme versionoikth_init() &#8211; Implement the &quot;oik_fields_loaded&quot; action for oik themes serveroikth_inspect_request_uri() &#8211; oikth_lazy_admin_menu() &#8211; Define oik theme server settingsoikth_lazy_redirect() &#8211; Implement lazy redirect for the selected actionoikth_load_apikey() &#8211; Load a record for this apikey and check that it&#8217;s OKoikth_load_theme() &#8211; Load the theme by $slugoikth_load_themeversion() &#8211; oikth_plugin_loaded() &#8211; Function to invoke when plugin file loadedoikth_tabulate_themeversion() &#8211; Automatically add the table of version information for a FREE or themium oik themeoikth_template_redirect() &#8211; Handle the themes\/%oik-theme% requestoikth_theme_add_feed() &#8211; Add the &quot;oik_theme&quot; feed.oikth_theme_feed() &#8211; oikth_theme_information() &#8211; https:\/\/spreadsheets.google.com\/pub?key=0AqP80E74YcUWdEdETXZLcXhjd2w0cHMwX2U1eDlWTHc&amp;authkey=CK7h9toK&amp;hl=en&amp;single=true&amp;gid=0&amp;output=htmloikth_theme_rewrite() &#8211; Implement &quot;init&quot; action for oik themes serveroikth_the_content() &#8211; Autogenerate additional content for selected post_typesoikth_the_post_oik_themes() &#8211; Add some content before &#8216;the_content&#8217; filteringoikth_the_post_oik_themeversion() &#8211; Add some content before &#8216;the_content&#8217; filtering completes for oik_themeversionoikth_update_check() &#8211; oikth_validate_apikey() &#8211; validate the apikey for this selected theme versionoikth_validate_themeversion() &#8211; validate the theme and version against the given post IDoik_register_oik_theme() &#8211; Register the oik-themes custom post typeoik_register_oik_themeversion() &#8211; Create the oik_themeversion custom post typeoik_register_oik_themeversion_fields() &#8211; Register the fields for the oik_themeversion and oik_themiumversion CPTsoik_register_oik_themiumversion() &#8211; Create the oik_themiumversion custom post typeoik_themes_accumulate_version() &#8211; Accumulate the figures for the theme versionoik_themes_add_version() &#8211; oik_themes_columns() &#8211; Return the columns to be displayed in the All post_type display admin pageoik_themes_fields() &#8211; Return the fields to be displayed in a tableoik_themes_options_do_page() &#8211; oik themes server settingsoik_themes_server_options() &#8211; Display the oik-themes server optionsoik_themes_status() &#8211; oik_themes_status_report() &#8211; oik_themes_summarise_versions() &#8211; Summarise the versions for this themeoik_themes_titles() &#8211; Titles are remarkably similar to columns for the admin pages We remove the Product column since it&#8217;s not working properly &#8211; it&#8217;s an optional field!oik_themeversion_columns() &#8211; Return the columns to be displayedoik_themeversion_fields() &#8211; Return the fields to be displayed in a tableoik_themeversion_titles() &#8211; Create titles for oik_themeversionoik_themiumversion_columns() &#8211; oik_themiumversion_fields() &#8211; Return the fields to be displayed in a tableoik_themiumversion_titles() &#8211; Titles are remarkably similar to columns for the admin pages_oikth_download_freeversion() &#8211; Create a link to download the FREE version_oikth_download_version() &#8211; _oikth_download_wordpressversion() &#8211; Create a link to download the WordPress theme Note: For the download to actually work this now requires the theme version, which we may not have._oikth_lazy_redirect() &#8211; Author: bobbingwide Author URI: http:\/\/www.bobbingwide.com License: GPL2_oikth_lazy_redirect_download() &#8211; Support \/themes\/download\/?theme=theme&amp;version=version&amp;apikey=apikey&amp;action=update\/download&amp;id=id_oikth_lazy_redirect_info() &#8211; _oikth_lazy_redirect_update_check() &#8211; _oikth_purchase_premiumversion() &#8211;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/\" \/>\n<meta property=\"og:site_name\" content=\"[oik] plugins.com\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/\",\"url\":\"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/\",\"name\":\"oik-themes APIs - [oik] plugins.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.oik-plugins.com\/#website\"},\"datePublished\":\"2013-12-02T16:38:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https:\/\/www.oik-plugins.com\/apis\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"oik-themes APIs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.oik-plugins.com\/#website\",\"url\":\"https:\/\/www.oik-plugins.com\/\",\"name\":\"[oik] plugins.com\",\"description\":\"WordPress plugins and themes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.oik-plugins.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"oik-themes APIs - [oik] plugins.com","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:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/","og_locale":"en_US","og_type":"article","og_title":"oik-themes APIs - [oik] plugins.com","og_description":"Application Programming Interfaces for the oik-themes plugin:  bw_array_add2() &#8211; Return the result of adding $amount to $array&#091;$index1]&#091;$index2]bw_function_namify() &#8211; Return a candidate function name from the given stringbw_get_userdata() &#8211; Get userdata for the selected user IDbw_return_field() &#8211; Return the value of the field depending on the field typebw_theme_post_types() &#8211; Return an array of theme version types associated with different themes typesbw_theme_types() &#8211; Return an array of theme types This is used as a select field.oikth_activation() &#8211; Dependency checking for oik-themesoikth_admin_menu() &#8211; Implement &quot;oik_admin_menu&quot; for oik-themesoikth_build_external_dir() &#8211; For non Windows servers (e.g.oikth_check_post_type() &#8211; oikth_columns_and_titles() &#8211; Add filters for the $post_typeoikth_create_new_file_name() &#8211; Can we alter the filter in wp_handle_upload to control where the file gets stored and the download URL for it?oikth_download() &#8211; Provide a download button for the zip attachment to this content or a selected theme ( theme=&quot;oik-fum&quot; )oikth_download_file() &#8211; Deliver the theme version requestedoikth_download__example() &#8211; oikth_download__help() &#8211; oikth_download__syntax() &#8211; oikth_force_download() &#8211; Force the download of a fileoikth_get_attachment() &#8211; oikth_get_author_name() &#8211; Return a link to the author&#8217;s home page Determine the author&#8217;s display name from the post author then append it to their website URLoikth_get_author_profile() &#8211; oikth_get_downloaded() &#8211; Return the number downloaded &#8211; when we&#8217;re ready to tell them!oikth_get_FAQ() &#8211; Return the defined FAQ page for the themes serveroikth_get_latestversion() &#8211; Return the version metadataoikth_get_package() &#8211; Return the package URL for this themeoikth_get_requires() &#8211; Get the value of the &quot;required_version&quot; custom category ( was _oikpv_requires )oikth_get_sections() &#8211; oikth_get_tested() &#8211; oikth_get_theme() &#8211; Load the theme for the given theme version or premium version nodeoikth_handle_upload() &#8211; Implement &#8216;wp_handle_upload&#8217; filteroikth_header_meta_box() &#8211; Add custom header support as requiredoikth_increment_downloads() &#8211; Increment the downloads for this theme versionoikth_init() &#8211; Implement the &quot;oik_fields_loaded&quot; action for oik themes serveroikth_inspect_request_uri() &#8211; oikth_lazy_admin_menu() &#8211; Define oik theme server settingsoikth_lazy_redirect() &#8211; Implement lazy redirect for the selected actionoikth_load_apikey() &#8211; Load a record for this apikey and check that it&#8217;s OKoikth_load_theme() &#8211; Load the theme by $slugoikth_load_themeversion() &#8211; oikth_plugin_loaded() &#8211; Function to invoke when plugin file loadedoikth_tabulate_themeversion() &#8211; Automatically add the table of version information for a FREE or themium oik themeoikth_template_redirect() &#8211; Handle the themes\/%oik-theme% requestoikth_theme_add_feed() &#8211; Add the &quot;oik_theme&quot; feed.oikth_theme_feed() &#8211; oikth_theme_information() &#8211; https:\/\/spreadsheets.google.com\/pub?key=0AqP80E74YcUWdEdETXZLcXhjd2w0cHMwX2U1eDlWTHc&amp;authkey=CK7h9toK&amp;hl=en&amp;single=true&amp;gid=0&amp;output=htmloikth_theme_rewrite() &#8211; Implement &quot;init&quot; action for oik themes serveroikth_the_content() &#8211; Autogenerate additional content for selected post_typesoikth_the_post_oik_themes() &#8211; Add some content before &#8216;the_content&#8217; filteringoikth_the_post_oik_themeversion() &#8211; Add some content before &#8216;the_content&#8217; filtering completes for oik_themeversionoikth_update_check() &#8211; oikth_validate_apikey() &#8211; validate the apikey for this selected theme versionoikth_validate_themeversion() &#8211; validate the theme and version against the given post IDoik_register_oik_theme() &#8211; Register the oik-themes custom post typeoik_register_oik_themeversion() &#8211; Create the oik_themeversion custom post typeoik_register_oik_themeversion_fields() &#8211; Register the fields for the oik_themeversion and oik_themiumversion CPTsoik_register_oik_themiumversion() &#8211; Create the oik_themiumversion custom post typeoik_themes_accumulate_version() &#8211; Accumulate the figures for the theme versionoik_themes_add_version() &#8211; oik_themes_columns() &#8211; Return the columns to be displayed in the All post_type display admin pageoik_themes_fields() &#8211; Return the fields to be displayed in a tableoik_themes_options_do_page() &#8211; oik themes server settingsoik_themes_server_options() &#8211; Display the oik-themes server optionsoik_themes_status() &#8211; oik_themes_status_report() &#8211; oik_themes_summarise_versions() &#8211; Summarise the versions for this themeoik_themes_titles() &#8211; Titles are remarkably similar to columns for the admin pages We remove the Product column since it&#8217;s not working properly &#8211; it&#8217;s an optional field!oik_themeversion_columns() &#8211; Return the columns to be displayedoik_themeversion_fields() &#8211; Return the fields to be displayed in a tableoik_themeversion_titles() &#8211; Create titles for oik_themeversionoik_themiumversion_columns() &#8211; oik_themiumversion_fields() &#8211; Return the fields to be displayed in a tableoik_themiumversion_titles() &#8211; Titles are remarkably similar to columns for the admin pages_oikth_download_freeversion() &#8211; Create a link to download the FREE version_oikth_download_version() &#8211; _oikth_download_wordpressversion() &#8211; Create a link to download the WordPress theme Note: For the download to actually work this now requires the theme version, which we may not have._oikth_lazy_redirect() &#8211; Author: bobbingwide Author URI: http:\/\/www.bobbingwide.com License: GPL2_oikth_lazy_redirect_download() &#8211; Support \/themes\/download\/?theme=theme&amp;version=version&amp;apikey=apikey&amp;action=update\/download&amp;id=id_oikth_lazy_redirect_info() &#8211; _oikth_lazy_redirect_update_check() &#8211; _oikth_purchase_premiumversion() &#8211;","og_url":"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/","og_site_name":"[oik] plugins.com","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/","url":"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/","name":"oik-themes APIs - [oik] plugins.com","isPartOf":{"@id":"https:\/\/www.oik-plugins.com\/#website"},"datePublished":"2013-12-02T16:38:23+00:00","breadcrumb":{"@id":"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.oik-plugins.com\/apis\/oik-themes-apis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"APIs","item":"https:\/\/www.oik-plugins.com\/apis\/"},{"@type":"ListItem","position":2,"name":"oik-themes APIs"}]},{"@type":"WebSite","@id":"https:\/\/www.oik-plugins.com\/#website","url":"https:\/\/www.oik-plugins.com\/","name":"[oik] plugins.com","description":"WordPress plugins and themes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oik-plugins.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/10125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/comments?post=10125"}],"version-history":[{"count":1,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/10125\/revisions"}],"predecessor-version":[{"id":10126,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/10125\/revisions\/10126"}],"up":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/1771"}],"wp:attachment":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/media?parent=10125"}],"wp:term":[{"taxonomy":"letters","embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/letters?post=10125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}