apply_filters( 'learndash_table_prefix', string $table_prefix, string $table_section )
Filters database table prefix.
Description #
Parameters #
- $table_prefix
-
(string) Database table prefix.
- $table_section
-
(string) Table section prefix.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_table_prefix filter.
*/
add_filter(
'learndash_table_prefix',
function( $table_prefix, $table_section ) {
// May add any custom logic using $table_prefix, $table_section.
// Always return $table_prefix.
return $table_prefix;
},
10,
2
);