advanced Archives - wiki

WordPress create advanced custom plugin using OOP

WordPress create advanced custom plugin using OOP

In this example, I am explaining how to add CSS, Java script, ajax in our custom plugin.

Plugin directory structure

plugin advanced folder structure

mysample.php

dashboard_view.php

innerpage_view.php

mystyle.css

myjs.js

dashboard

inner page

 

For  WordPress create simple custom plugin using OOP refer http://wiki.workassis.com/wordpress-create-simple-custom-plugin-using-oop/

refer

https://developer.wordpress.org/reference/functions/wp_register_script/

https://codex.wordpress.org/Function_Reference/wp_register_style

https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_(action)

https://developer.wordpress.org/reference/functions/wp_enqueue_script/

https://developer.wordpress.org/reference/functions/wp_enqueue_style/

https://developer.wordpress.org/reference/functions/get_option/

https://codex.wordpress.org/Function_Reference/add_option

https://codex.wordpress.org/Function_Reference/update_option

 

1 Like
By bm on June 27, 2016 | wordpress | A comment?
Tags: , , , , ,

WordPress create custom advanced dashboard widget

WordPress create custom advanced dashboard widget

Add the following code to functions.php

Output

wdget view

wdget edit

wdget final

 

Related topics

ref: https://codex.wordpress.org/Function_Reference/wp_add_dashboard_widget

 

  Like
By bm on June 22, 2016 | wordpress | A comment?
Tags: , , , ,