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
Author: bm on June 27, 2016
Category: wordpress
Tags: , , , , ,

Your comment:

Your Name

Comment:




Last articles