code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Main WordPress Formatting API. * * Handles many functions for formatting output. * * @package WordPress */ /** * Replaces common plain text characters into formatted entities * * As an example, * <code> * 'cause today's effort makes it worth tomorrow's "holiday"... * </code> * Becomes: * <cod...
PHP
<?php /** * Defines constants and global variables that can be overridden, generally in wp-config.php. * * @package WordPress */ /** * Defines initial WordPress constants * * @see wp_debug_mode() * * @since 3.0.0 */ function wp_initial_constants() { global $blog_id; // set memory limits if ( !defined('WP...
PHP
<?php /** * Date and Time Locale object * * @package WordPress * @subpackage i18n */ /** * Class that loads the calendar locale. * * @since 2.1.0 */ class WP_Locale { /** * Stores the translated strings for the full weekday names. * * @since 2.1.0 * @var array * @access private */ var $weekday; ...
PHP
<?php /** * WordPress environment setup class. * * @package WordPress * @since 2.0.0 */ class WP { /** * Public query variables. * * Long list of public query variables. * * @since 2.0.0 * @access public * @var array */ var $public_query_vars = array('m', 'p', 'posts', 'w', 'cat', 'withcomments',...
PHP
<?php /** * Comment template functions * * These functions are meant to live inside of the WordPress loop. * * @package WordPress * @subpackage Template */ /** * Retrieve the author of the current comment. * * If the comment has an empty comment_author field, then 'Anonymous' person is * assumed. * * @sin...
PHP
<?php /** * BackPress Scripts Procedural API * * @since 2.6.0 * * @package WordPress * @subpackage BackPress */ /** * Print scripts in document head that are in the $handles queue. * * Called by admin-header.php and wp_head hook. Since it is called by wp_head on every page load, * the function does not inst...
PHP
<?php /** * Template loading functions. * * @package WordPress * @subpackage Template */ /** * Retrieve path to a template * * Used to quickly retrieve the path of a template without including the file * extension. It will also check the parent theme, if the file exists, with * the use of {@link locate_templ...
PHP
<?php /** * These functions can be replaced via plugins. If plugins do not redefine these * functions, then these will be used instead. * * @package WordPress */ if ( !function_exists('wp_set_current_user') ) : /** * Changes the current user by ID or name. * * Set $id to null and specify a name if you do not k...
PHP
<?php /** * Deprecated pluggable functions from past WordPress versions. You shouldn't use these * functions and look for the alternatives instead. The functions will be removed in a * later version. * * Deprecated warnings are also thrown if one of these functions is being defined by a plugin. * * @package Word...
PHP
<?php /** * Canonical API to handle WordPress Redirecting * * Based on "Permalink Redirect" from Scott Yang and "Enforce www. Preference" * by Mark Jaquith * * @package WordPress * @since 2.3.0 */ /** * Redirects incoming links to the proper URL based on the site url. * * Search engines consider www.somedom...
PHP
<?php /** * WordPress CRON API * * @package WordPress */ /** * Schedules a hook to run only once. * * Schedules a hook which will be executed once by the WordPress actions core at * a time which you specify. The action will fire off when someone visits your * WordPress site, if the schedule time has passed. ...
PHP
<?php /** * WordPress Link Template Functions * * @package WordPress * @subpackage Template */ /** * Display the permalink for the current post. * * @since 1.2.0 */ function the_permalink() { /** * Filter the display of the permalink for the current post. * * @since 1.5.0 * * @param string $permali...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // // ...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php ///////////////////////////////////////////////////////////////// /// getID3() by James Heinrich <info@getid3.org> // // available at http://getid3.sourceforge.net // // or http://www.getid3.org // //////////////////////////////////////////////////...
PHP
<?php /** * WordPress Post Thumbnail Template Functions. * * Support for post thumbnails * Themes function.php must call add_theme_support( 'post-thumbnails' ) to use these. * * @package WordPress * @subpackage Template */ /** * Check if post has an image attached. * * @since 2.9.0 * * @param int $post_id...
PHP
<?php /** * Sets up the default filters and actions for most * of the WordPress hooks. * * If you need to remove a default hook, this file will * give you the priority for which to use to remove the * hook. * * Not all of the default hooks are found in default-filters.php * * @package WordPress */ // Strip,...
PHP
<?php /** * Site/blog functions that work with the blogs table and related data. * * @package WordPress * @subpackage Multisite * @since MU */ /** * Update the last_updated field for the current blog. * * @since MU */ function wpmu_update_blogs_date() { global $wpdb; update_blog_details( $wpdb->blogid, a...
PHP
<?php /** * Post format functions. * * @package WordPress * @subpackage Post */ /** * Retrieve the format slug for a post * * @since 3.1.0 * * @param int|object $post Post ID or post object. Optional, default is the current post from the loop. * @return mixed The format if successful. False otherwise. */ f...
PHP
<?php /** * PHPMailer RFC821 SMTP email transport class. * Version 5.2.7 * PHP version 5.0.0 * @category PHP * @package PHPMailer * @link https://github.com/PHPMailer/PHPMailer/ * @author Marcus Bointon (coolbru) <phpmailer@synchromedia.co.uk> * @author Jim Jagielski (jimjag) <jimjag@gmail.com> * @auth...
PHP
<?php /** * Object Cache API * * @link http://codex.wordpress.org/Function_Reference/WP_Cache * * @package WordPress * @subpackage Cache */ /** * Adds data to the cache, if the cache key doesn't already exist. * * @since 2.0.0 * @uses $wp_object_cache Object Cache Class * @see WP_Object_Cache::add() * * ...
PHP
<?php /** * Customize Manager. * * Bootstraps the Customize experience on the server-side. * * Sets up the theme-switching process if a theme other than the active one is * being previewed and customized. * * Serves as a factory for Customize Controls and Settings, and * instantiates default Customize Controls...
PHP
<?php /** * Post functions and post utility function. * * @package WordPress * @subpackage Post * @since 1.5.0 */ // // Post Type Registration // /** * Creates the initial post types when 'init' action is fired. * * @since 2.9.0 */ function create_initial_post_types() { register_post_type( 'post', array( ...
PHP
<?php /** * BackPress Scripts enqueue. * * These classes were refactored from the WordPress WP_Scripts and WordPress * script enqueue API. * * @package BackPress * @since r16 */ /** * BackPress Scripts enqueue class. * * @package BackPress * @uses WP_Dependencies * @since r16 */ class WP_Scripts extends ...
PHP
<?php /** * Admin Bar * * This code handles the building and rendering of the press bar. */ /** * Instantiate the admin bar object and set it up as a global for access elsewhere. * * UNHOOKING THIS FUNCTION WILL NOT PROPERLY REMOVE THE ADMIN BAR. * For that, use show_admin_bar(false) or the 'show_admin_bar' fi...
PHP
<?php /** * WordPress Category API * * @package WordPress */ /** * Retrieves all category IDs. * * @since 2.0.0 * @link http://codex.wordpress.org/Function_Reference/get_all_category_ids * * @return object List of all of the category IDs. */ function get_all_category_ids() { if ( ! $cat_ids = wp_cache_get(...
PHP
<?php /** * Simple and uniform HTTP request API. * * Standardizes the HTTP requests for WordPress. Handles cookies, gzip encoding and decoding, chunk * decoding, if HTTP 1.1 and various other difficult HTTP protocol implementations. * * @link http://trac.wordpress.org/ticket/4779 HTTP API Proposal * * @package ...
PHP
<?php /** * Sets up the default filters and actions for Multisite. * * If you need to remove a default hook, this file will give you the priority * for which to use to remove the hook. * * Not all of the Multisite default hooks are found in ms-default-filters.php * * @package WordPress * @subpackage Multisite ...
PHP
<?php /** * These functions are needed to load WordPress. * * @internal This file must be parsable by PHP4. * * @package WordPress */ /** * Turn register globals off. * * @access private * @since 2.1.0 * @return null Will return null if register_globals PHP directive was disabled */ function wp_unregister_...
PHP
<?php /** * The plugin API is located in this file, which allows for creating actions * and filters and hooking functions, and methods. The functions or methods will * then be run when the action or filter is called. * * The API callback examples reference functions, but can be methods of classes. * To hook metho...
PHP
<?php /** * Class for working with MO files * * @version $Id: mo.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage mo */ require_once dirname(__FILE__) . '/translations.php'; require_once dirname(__FILE__) . '/streams.php'; if ( !class_exists( 'MO' ) ): class MO extends Gettext_Translation...
PHP
<?php /** * Contains Translation_Entry class * * @version $Id: entry.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage entry */ if ( !class_exists( 'Translation_Entry' ) ): /** * Translation_Entry class encapsulates a translatable string */ class Translation_Entry { /** * Whether the ...
PHP
<?php /** * Classes, which help reading streams of data from files. * Based on the classes from Danilo Segan <danilo@kvota.net> * * @version $Id: streams.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage streams */ if ( !class_exists( 'POMO_Reader' ) ): class POMO_Reader { var $endian = ...
PHP
<?php /** * Class for working with PO files * * @version $Id: po.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage po */ require_once dirname(__FILE__) . '/translations.php'; define('PO_MAX_LINE_LEN', 79); ini_set('auto_detect_line_endings', 1); /** * Routines for working with PO files ...
PHP
<?php /** * Class for a set of entries for translation and their associated headers * * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $ * @package pomo * @subpackage translations */ require_once dirname(__FILE__) . '/entry.php'; if ( !class_exists( 'Translations' ) ): class Translations { ...
PHP
<?php /** * MagpieRSS: a simple RSS integration tool * * A compiled file for RSS syndication * * @author Kellan Elliott-McCrea <kellan@protest.net> * @version 0.51 * @license GPL * * @package External * @subpackage MagpieRSS * @deprecated 3.0.0 Use SimplePie instead. */ /** * Deprecated. Use SimplePie (cl...
PHP
<?php /** * Atom Feed Template for displaying Atom Comments feed. * * @package WordPress */ header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true); echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '" ?' . '>'; ?> <feed xmlns="http://www.w3.org/20...
PHP
<?php /** * Gets the email message from the user's mailbox to add as * a WordPress post. Mailbox connection information must be * configured under Settings > Writing * * @package WordPress */ /** Make sure that the WordPress bootstrap has run before continuing. */ require(dirname(__FILE__) . '/wp-load.php'); /*...
PHP
<?php /** * The base configurations of the WordPress. * * This file has the following configurations: MySQL settings, Table Prefix, * Secret Keys, WordPress Language, and ABSPATH. You can find more information * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing * wp-config.php} Codex pag...
PHP
<?php /** * XML-RPC protocol support for WordPress * * @package WordPress */ /** * Whether this is an XML-RPC Request * * @var bool */ define('XMLRPC_REQUEST', true); // Some browser-embedded clients send cookies. We don't want them. $_COOKIE = array(); // A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not s...
PHP
<?php // Silence is golden.
PHP
<?php // Silence is golden. ?>
PHP
<?php /* * Meta box - fields * * This template file is used when editing a field group and creates the interface for editing fields. * * @type template * @date 26/01/13 */ // global global $post, $field_types; // get fields $fields = apply_filters('acf/field_group/get_fields', array(), $post->ID); // add cl...
PHP
<?php /* * Meta box - locations * * This template file is used when editing a field group and creates the interface for editing location rules. * * @type template * @date 23/06/12 */ // global global $post; // vars $groups = apply_filters('acf/field_group/get_location', array(), $post->ID); // at lease 1...
PHP
<?php /* * Meta box - options * * This template file is used when editing a field group and creates the interface for editing options. * * @type template * @date 23/06/12 */ // global global $post; // vars $options = apply_filters('acf/field_group/get_options', array(), $post->ID); ?> <table class="acf_inp...
PHP
<?php /* * Export * * @description: * @since: 3.6 * @created: 25/01/13 */ // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // vars $defaults = array( 'acf_posts' => array(), 'nonce' => '' ); $my_options = array_merge( $defaults, $_POST ); // validate nonce if( !wp_verify_nonce($my_options['n...
PHP
<?php class acf_field_taxonomy extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'taxonomy'; $this->label = __("Taxonomy",'acf'); $this->category = __("Relational",'acf'); $t...
PHP
<?php /* * acf_field * * @description: This is the base class for all fields. * @since: 3.6 * @created: 30/01/13 */ class acf_field { /* * Vars * * @description: * @since: 3.6 * @created: 30/01/13 */ var $name, $title, $category, $defaults, $l10n; /* * __construct() * * Adds necc...
PHP
<?php class acf_field_checkbox extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'checkbox'; $this->label = __("Checkbox",'acf'); $this->category = __("Choice",'acf'); $this...
PHP
<?php class acf_field_radio extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'radio'; $this->label = __("Radio Button",'acf'); $this->category = __("Choice",'acf'); $this->d...
PHP
<?php class acf_field_file extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'file'; $this->label = __("File",'acf'); $this->category = __("Content",'acf'); $this->defaults...
PHP
<?php class acf_field_password extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'password'; $this->label = __("Password",'acf'); $this->defaults = array( 'placeholder' =>...
PHP
<?php class acf_field_select extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'select'; $this->label = __("Select",'acf'); $this->category = __("Choice",'acf'); $this->defau...
PHP
<?php class acf_field_true_false extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'true_false'; $this->label = __("True / False",'acf'); $this->category = __("Choice",'acf')...
PHP
<?php // Create an acf version of the_content filter (acf_the_content) if( isset($GLOBALS['wp_embed']) ) { add_filter( 'acf_the_content', array( $GLOBALS['wp_embed'], 'run_shortcode' ), 8 ); add_filter( 'acf_the_content', array( $GLOBALS['wp_embed'], 'autoembed' ), 8 ); } add_filter( 'acf_the_content', 'capital_P_d...
PHP
<?php class acf_field_page_link extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'page_link'; $this->label = __("Page Link",'acf'); $this->category = __("Relational",'acf'); ...
PHP
<?php class acf_field_message extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'message'; $this->label = __("Message",'acf'); $this->category = __("Layout",'acf'); $this->...
PHP
<?php class acf_field_email extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'email'; $this->label = __("Email",'acf'); $this->defaults = array( 'default_value' => '', ...
PHP
<?php class acf_field_tab extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'tab'; $this->label = __("Tab",'acf'); $this->category = __("Layout",'acf'); // do not del...
PHP
<?php class acf_field_dummy extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'dummy'; $this->label = __('Dummy'); // do not delete! parent::__construct(); } ...
PHP
<?php class acf_field_user extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'user'; $this->label = __("User",'acf'); $this->category = __("Relational",'acf'); $this->default...
PHP
<?php class acf_field_textarea extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'textarea'; $this->label = __("Text Area",'acf'); $this->defaults = array( 'default_value'...
PHP
<?php class acf_field_number extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'number'; $this->label = __("Number",'acf'); $this->defaults = array( 'default_value' => '',...
PHP
<?php /* * Field Functions * * @description: The API for all fields * @since: 3.6 * @created: 23/01/13 */ class acf_field_functions { /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { //value add_filter('acf/load_value', array($this, 'load_val...
PHP
<?php class acf_field_text extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'text'; $this->label = __("Text",'acf'); $this->defaults = array( 'default_value' => '', 'f...
PHP
<?php class acf_field_relationship extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'relationship'; $this->label = __("Relationship",'acf'); $this->category = __("Relational",...
PHP
<?php class acf_field_image extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'image'; $this->label = __("Image",'acf'); $this->category = __("Content",'acf'); $this->defau...
PHP
<?php class acf_field_post_object extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'post_object'; $this->label = __("Post Object",'acf'); $this->category = __("Relational",'ac...
PHP
<?php class acf_field_google_map extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'google_map'; $this->label = __("Google Map",'acf'); $this->category = __("jQuery",'acf'); ...
PHP
<?php class acf_field_color_picker extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'color_picker'; $this->label = __("Color Picker",'acf'); $this->category = __("jQuery",'a...
PHP
<?php class acf_field_date_picker extends acf_field { /* * __construct * * Set name / label needed for actions / filters * * @since 3.6 * @date 23/01/13 */ function __construct() { // vars $this->name = 'date_picker'; $this->label = __("Date Picker",'acf'); $this->category = __("jQuery",'acf'...
PHP
<?php /* * acf_field_group * * @description: controller for editing a field group * @since: 3.6 * @created: 25/01/13 */ class acf_field_group { var $settings; /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // actions add_action('admin...
PHP
<?php /* * acf_field_groups * * @description: * @since: 3.6 * @created: 25/01/13 */ class acf_field_groups { /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // actions add_action('admin_menu', array($this,'admin_menu')); } /* * adm...
PHP
<?php class acf_everything_fields { var $settings, $data; /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // data for passing variables $this->data = array( 'page_id' => '', // a string used to load values 'metabox_ids' => array()...
PHP
<?php /* * Revisions * * This Class contains all the functionality for adding ACF fields to the WP revisions interface * * @type class * @date 11/08/13 */ class acf_revisions { /* * __construct * * A good place to add actions / filters * * @type function * @date 11/08/13 * * @param N/A * @return...
PHP
<?php /* * Locations * * @description: controller for location match functionality * @since: 3.6 * @created: 25/01/13 */ class acf_location { /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // ajax add_action('wp_ajax_acf/location/match_fiel...
PHP
<?php /* * acf_addons * * @description: controller for add-ons sub menu page * @since: 3.6 * @created: 25/01/13 */ class acf_addons { var $action; /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // actions add_action('admin_menu', arra...
PHP
<?php /* * acf_export * * @description: controller for export sub menu page * @since: 3.6 * @created: 25/01/13 */ class acf_export { var $action; /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // vars $this->action = ''; // ac...
PHP
<?php /* * acf_third_party * * @description: controller for add-ons sub menu page * @since: 3.6 * @created: 25/01/13 */ class acf_third_party { /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // Tabify Edit Screen - http://wordpress.org/extend/...
PHP
<?php /* * acf_controller_post * * This class contains the functionality to add ACF fields to a post edit form * * @type class * @date 5/09/13 * @since 3.1.8 * */ class acf_controller_post { /* * Constructor * * This function will construct all the neccessary actions and filters * * @type function *...
PHP
<?php /* * acf_controller_input * * This class contains the functionality for input actions used throughout ACF * * @type class * @date 5/09/13 * @since 3.1.8 * */ class acf_controller_input { /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { /...
PHP
<?php /* * Upgrade * * @description: All the functionality for upgrading ACF * @since 3.2.6 * @created: 23/06/12 */ class acf_upgrade { /* * __construct * * @description: * @since 3.1.8 * @created: 23/06/12 */ function __construct() { // actions add_action('admin_menu', array($this,'admin_menu'...
PHP
<?php /* * get_field_reference() * * This function will find the $field_key that is related to the $field_name. * This is know as the field value reference * * @type function * @since 3.6 * @date 29/01/13 * * @param mixed $field_name: the name of the field - 'sub_heading' * @param int $post_id: the post_id of...
PHP
<?php /* Plugin Name: Advanced Custom Fields Plugin URI: http://www.advancedcustomfields.com/ Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerful API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text,...
PHP
<?php /* Plugin Name: Custom Post Type UI Plugin URI: http://webdevstudios.com/plugin/custom-post-type-ui/ Description: Admin panel for creating custom post types and custom taxonomies in WordPress Author: WebDevStudios.com Version: 0.8.3 Author URI: http://webdevstudios.com/ Text Domain: cpt-plugin License: G...
PHP
<?php /** * Implement Custom Header functionality for Asahi Kasei * * @package WordPress */ /** * Set up the WordPress core custom header settings. * * * @uses asahikasei_header_style() * @uses asahikasei_admin_header_style() * @uses asahikasei_admin_header_image() */ function asahikasei_custom_header_setup...
PHP
<?php get_template_part('templates/head'); ?> <body <?php body_class(); ?>> <!--[if lt IE 8]> <div class="alert alert-warning"> <?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?> </div...
PHP