Lines:
1 to 98 of 98
<?php // (C) Copyright Bobbing Wide 2012-2017 /** * Admin functions for oik_shortcodes * * Provides admin pages to allow us to generate known shortcodes that have the appropriate filters * and we can also generate/re-generate API definitions. * * But the batch method is expected to be much much easier in the long run. */ /* function oiksc_lazy_admin_menu() – Define oik-shortcodes settings and page */ /* function oiksc_options_do_page() – shortcodes admin page */ /* function oiksc_api_do_page() – APIs admin page */ /* function oiksc_parms_rows() – Display a table of parms rows for the "oik_sc_param" post types */ /* function oiksc_get_help() – Return the "help" for the shortcode */ /* function oiksc_get_func() – Return the "func" that implements the shortcode */ /* function oiksc_theme_basename() – Implement theme_basename equivalent of plugin_basename */ /* function oiksc_relative_filename() – return the relative file name given the full name of the source file */ /* function oiksc_get_source() – Determine the basename of the file that implements the shortcode from what we already know */ /* function _oiksc_create_param() – Create missing parameters for this shortcode */ /* function oiksc_create_oik_sc_param() – Create an oik_sc_param record programmatically */ /* function _oiksc_create_params() – Create the oik_sc_param records for each of the shortcode atts */ /* function oiksc_get_shortcode_byname() – Access the shortcode by its name and the plugin it’s associated with */ /* function oiksc_create_oik_shortcode() – Create an oik_shortcodes record programmatically */ /* function oiksc_create_shortcode() – Create an oik_shortcode */ /* function oiksc_oik_api_post_title() – Set the post_title for an oik_api */ /* function oiksc_oik_hook_post_title() – Set the post_title for an oik_hook */ /* function oiksc_create_oik_api() – Programmatically create an oik_api record for a selected plugin’s func */ /* function oiksc_get_hook_type() – Return the hook type given the context */ /* function oiksc_load_docblock() – Build a docblock object from the most recent docblock */ /* function oiksc_get_docblock() – Return a formatted docblock */ /* function oiksc_get_docblock_tags() – Return the docblock tags for an action hook / filter */ /* function oiksc_get_docblock_tag() – Format a docblock tag as a definition list term */ /* function oiksc_get_plugin() – Return the post_ID for the plugin name */ /* function oiksc_get_filename() – Return the filename */ /* function oiksc_create_oik_hook() – Programmatically create an oik_hook record */ /* function oiksc_update_oik_api() – Update the meta data for an oik_api post_type */ /* function oiksc_update_oik_hook() – Update the post data and meta data for an oik_hook post_type */ /* function oiksc_build_oik_hook_post_content() – Build the post content for an oik_hook //"$docblock<!–more –>[bw_fields][hooks]"; */ /* function oiksc_get_sc_param() – Retrieve an "oik_sc_param" record for the selected shortcode and parameter name */ /* function _oiksc_create_shortcode() – Create an oik_shortcode programmatically */ /* function oiksc_code_list() – Produce the list of existing codes for which to create an oik_shortcode */ /* function oiksc_func_list() – Produce the list of existing APIs for which to create an oik_shortcode */ /* function oiksc_options() – shortcodes options */ /* function oiksc_get_oik_api_byname() – Query API from function name */ /* function oiksc_get_oik_hook_byname() – Query hook from hook name */ /* function oiksc_get_shortcodes_byname() – Return a (hopefully one) shortcode given its name and implementing functions post ID, if available */ /* function oiksc_lazy_redirect() – Redirect to the page for the shortcode */View on GitHub