Title: DX Plugin Base
Author: Mario Peshev
Published: <strong>8 februari 2012</strong>
Last modified: 21 augusti 2015

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://s.w.org/plugins/geopattern-icon/dx-plugin-base.svg)

# DX Plugin Base

 Av [Mario Peshev](https://profiles.wordpress.org/nofearinc/)

[Ladda ner](https://downloads.wordpress.org/plugin/dx-plugin-base.1.6.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/dx-plugin-base/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/dx-plugin-base/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/dx-plugin-base/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/dx-plugin-base/#developers)

 [Support](https://wordpress.org/support/plugin/dx-plugin-base/)

## Beskrivning

This is a fully-functional sample skeleton plugin for plugin developers.

It serves as a startup code providing reference and working codebase for:

 * defining custom post types and taxonomies
 * creating admin pages
 * sample code of the Settings API implementation for admin pages
 * registration of activate/deactivate hooks
 * adding metaboxes on pages
 * creating sample shortcode
 * creating sample widget
 * creating AJAX requests storing sample data in the database
 * creating AJAX requests for fetching remote data with the HTTP API
 * adding frontend styles/scripts the right way
 * adding admin styles/scripts the right way
 * defining common constants for further use

and more. **Use it freely as your plugin startup snippet**.

Take the code as is for test and learning or use it when creating plugins for a 
solid base. To be extended with
 widget and shortcode samples.

## Installation

Upload the DX Plugin Base plugin to your blog and activate it. It would work as 
is.

Extend or comment whenever appropriate based on your assignment.

## Vanliga frågor

  Is it compatible with latest WordPress?

Yes, it is, as well as with the latest PHP.

I’ve removed the ’pass-by-reference’ call for all array( $this, … ) entries as it’s
deprecated since 5.3.0. If you happen to use 5.2.4, you can replace all $this in
arrays with &$this or better update PHP version.

## Recensioner

![](https://secure.gravatar.com/avatar/7b753986081303fef27110029256c6314563b24ae54c551184fb0cdd74a21496?
s=60&d=retro&r=g)

### 󠀁[Good plugin base](https://wordpress.org/support/topic/good-plugin-base/)󠁿

 [Ivan Mudrik](https://profiles.wordpress.org/meatman89fs/) 3 september 2016

Nice starting for new plugin development.

 [ Läs alla 2 betyg ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/)

## Bidragsgivare och utvecklare

”DX Plugin Base” är programvara med öppen källkod. Följande personer har bidragit
till detta tillägg.

Bidragande personer

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)
 *   [ DevriX ](https://profiles.wordpress.org/devrix/)

[Översätt ”DX Plugin Base” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/dx-plugin-base)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/dx-plugin-base/), 
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/dx-plugin-base/) eller
prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/dx-plugin-base/)
via [RSS](https://plugins.trac.wordpress.org/log/dx-plugin-base/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.6

 * Widget update for PHP compatibility with 4.3

#### 1.5

 * Add custom fields to metaboxes
 * Save custom fields

#### 1.4

 * Refreshing

#### 1.3

 * Add page with AJAX options
 * Introduce AJAX call for storing data to DB
 * Introduce AJAX call to fetch title from remote HTTP resouce

#### 1.2

 * Fix small issues and prevent some unexpected activities

#### 1.0

 * Initial commit

## Meta

 *  Version **1.6**
 *  Senast uppdaterat **11 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 3.1 eller senare **
 *  Testat upp till **4.3.34**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/dx-plugin-base/)
 * Etiketter
 * [BASE](https://sv.wordpress.org/plugins/tags/base/)[foundation](https://sv.wordpress.org/plugins/tags/foundation/)
   [framework](https://sv.wordpress.org/plugins/tags/framework/)[skeleton](https://sv.wordpress.org/plugins/tags/skeleton/)
   [startup](https://sv.wordpress.org/plugins/tags/startup/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/dx-plugin-base/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  2 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/dx-plugin-base/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dx-plugin-base/reviews/#new-post)

[Visa alla recensioner](https://wordpress.org/support/plugin/dx-plugin-base/reviews/)

## Bidragande personer

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)
 *   [ DevriX ](https://profiles.wordpress.org/devrix/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/dx-plugin-base/)