MP_Addon_SMS_Leads::get_leads_table_column( string $column_name, int|string $post_ID )
Get data from lead to lead columns.
Contents
Parameters Parameters
- $column_name
-
(string) (Required) column name
- $post_ID
-
(int|string) (Required) post id
Source Source
File: calculator-sms-add-on/inc/MP_Addon_SMS_Leads.php
public function get_leads_table_column( $column_name, $post_ID ) {
if ( MortgagePlatform::$prefix . 'sms_status' === $column_name ) {
if ( get_post_meta( $post_ID, MortgagePlatform::$prefix . 'sms_status', true ) ) {
echo '<img style="width:10px;" src="' . esc_url( plugins_url( '../assets/img/dot.svg', __FILE__ ) ) . '" title="' . esc_html__( 'New SMS', 'CalculatorSMSAddon' ) . '"">';
}
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |