Mee Ọnọdụ

Disciple.Tools - Dashboard

Ngwa mgbakwunye a na-agbakwụnye ọmarịcha ibe mmalite iji nyere ndị na-eso ụzọ aka ịmata ihe kachasị mkpa ị ga-eme (Kpọtụrụ ọhụrụ, Mmelite Kọntaktị chọrọ, wdg).

nzube

N'ime ozi nnweta, ebe ị nwere nnukwu kọntaktị na-abata nke chọrọ nleba anya dashboard mmalite a na-enyere aka ịkọwapụta site na mgbe onye na-eso ụzọ na-abanye n'ime ya iji dozie nsogbu ndị kachasị ngwa ngwa.

Ọ na-enyere gị aka ịza ngwa ngwa:

  1. Enwere m kọntaktị ọhụrụ e kenyere m?
  2. Enwere m kọntaktị ọ bụla chọrọ nsonye?
  3. Kedu ọrụ m nwere pụtara ìhè?
  4. Kedu ka ọzọ na agamnihu m siri dị?

ojiji

Ga-ezu

  • Nweta ngwa ngwa nke ọnụọgụ kọntaktị, kọntaktị ekenyere ọhụrụ, yana kọntaktị chọrọ mmelite.
  • Nweta ngwa ngwa maka ọrụ kọntaktị ndị ọzọ
  • Nweta ọrụ ngwa ngwa.
  • Ịnweta ngwa ngwa metrik isi maka ihe ịrịba ama okwukwe, akara aka nkeonwe na ọganihu onye na-achọ.

Agaghị eme

  • Ọ naghị eme ndezi ozugbo. Ọ na-ebuli naanị ihe ndị dị mkpa maka itinye uche.

chọrọ

  • Disciple.Tools Isiokwu etinyere na nkesa WordPress

wụnye

  • Wụnye dị ka ọkọlọtọ Disciple.ToolsNgwa mgbakwunye /Wordpress na mpaghara Admin/Plugins sistemu.
  • Achọrọ ọrụ onye ọrụ nke onye nchịkwa.

Taịlị omenala

Enwere ike ịdebanye aha taịlị site na iji dt_dashboard_register_tile ọrụ.

dt_dashboard_register_tile(
    'Your_Custom_Tile',                     //handle
    __('Custom Tile Label', 'your-plugin'), //label
    function() {                            //Register any assets the tile needs or do anything else needed on registration.
        wp_enqueue_script( $this->handle, 'path-to-your-tiles-script.js', [], null, true);
    },
    function() {                            //Render the tile
        get_template_part( 'whatever-slug', 'whatever-file', [
            'handle' => $this->handle,
            'label' => $this->label,
            'tile' => $this
        ]);
    }
);

Taịlị omenala ndị dị mgbagwoju anya nwere ike ịmepụta site na ịgbatị DT_Dashboard_Plugin_Tile.

Nke a bụ ọmụmaatụ:

/**
* Your custom tile class
 */
class Your_Custom_Tile extends DT_Dashboard_Tile
{

    /**
     * Register any assets the tile needs or do anything else needed on registration.
     * @return mixed
     */
    public function setup() {
        wp_enqueue_script( $this->handle, 'path-t0-your-tiles-script.js', [], null, true);
    }

    /**
     * Render the tile
     */
    public function render() {
        get_template_part( 'whatever-slug', 'whatever-file', [
            'handle' => $this->handle,
            'label' => $this->label,
            'tile' => $this
        ]);
    }
}

/**
* Next, register our class. This can be done in the after_setup_theme hook.
*/
DT_Dashboard_Plugin_Tiles::instance()->register(
    new Your_Custom_Tile(
        'Your_Custom_Tile',                     //handle
        __('Custom Tile Label', 'your-plugin'), //label
         [
            'priority' => 1,
            'span' => 1
         ]
    ));

Nko

The dt_dashboard_tiles enwere ike iji nzacha wepu taịlị, ma ọ bụ tinye taịlị ọhụrụ na-ejighi ya DT_Dashboard_Plugin_Tiles::instance()->register.

Onyinye

Nnọọ nkwado. Ị nwere ike ịkọ nsogbu na ahụhụ na Issues ngalaba nke repo. Ị nwere ike wepụta echiche na Mkparịta ụka ngalaba nke repo. A na-anabatakwa ntinye koodu site na iji Arịrịọ dọrọ Sistemụ maka git. Maka nkọwa ndị ọzọ na ntinye aka hụ ntụnye aka.

screenshots

nseta ihuenyo.png