(1) Use the Code Manager to style your projects The Code Manager is the new way to style projects! Read more about the Code Manager… The table below demonstrates how the Code Manager can be used to style a project. Use the project layout panel to switch between stylesFind your favourite combination of styles Download […]
Coding
Add user input filter to where clause
Starting from version 3.1.5, the plugin allows to add a filter to a where clause based on user input: Add an argument to your request (supports POST and GET) Give your argument the name of your column prefixed with wpda_search_column_ Example Adds condition
Action hook (wpda_before_list_table) to add custom elements to before a list table
Use action hook wpda_before_list_table to add HTML and JavaScript before a list table. Argument $self contains a reference to your list table instance, which allows you to interact with your list table through public members and methods. Usage
Action hook (wpda_before_simple_form) to add custom elements before a data entry form
Use action hook wpda_before_simple_form to add HTML and JavaScript before a data entry form. Argument $self contains a reference to your simple form instance, which allows you to interact with your data entry form through public members and methods. Usage
How to use WP Data Access classes in your own PHP code
As a PHP programmer you can use the WP Data Access classes to add full CRUD table pages to your own dashboard menus. Read the example code below to learn how.
Generate API documentation
Generate API Documentation Start the command line interface Navigate to the plugin root folder Enter the following commands: composer require −−dev phpdocumentor/phpdocumentor dev-master php vendor/phpdocumentor/phpdocumentor/bin/phpdoc.php Navigate to subfolder docs Open file index.html in your favourite browser Remove API Documentation Start the command line interface Navigate to the plugin root folder Enter the following command: composer […]
Filter (wpda_wpdataaccess_prepare) to add custom options to a publication
Filter wpda_wpdataaccess_prepare allows developers to add their own jQuery DataTable options to a publication. This code is used to initialize a publication. More information about jQuery DataTables options… $html HTML code (may include JavaScript code) $schema_name Database schema name (database name) $table_name Database table name $pub_id Publication ID $columns Table columns $table_settings Table settings as […]
Action hooks to add search actions and filters
Two action hooks were added to enhance searching: wpda_add_search_actions and wpda_add_search_filter. Use these actions to customize the search box of your list table. These action hooks apply to WordPress list tables only. They do not affect publications. Action hook wpda_add_search_actions Added to allow developers to add actions to the search bar (e.g. an icon). Action […]
Action hook (wpda_after_list_table) to add custom elements to after a list table
Use action hook wpda_after_list_table to add HTML and JavaScript after a list table. Argument $self contains a reference to your list table instance, which allows you to interact with your list table through public members and methods. Usage Note You can use this action hook in combination with filter wpda_column_default to add interactive elements to […]
Filter (wpda_column_default) to influence column layout in list table
A filter named wpda_column_default was added to influence the layout of list table columns. The filter is not called on the first column to prevent links not being displayed correctly. Example Note You can use this filter in combination with action hook wpda_after_list_table to add interactive elements to your list tables. Function declaration wpda_column_default( $item, […]